You are here

public function EntityTest::testResolveUuid in GraphQL 8.4

@covers \Drupal\graphql\Plugin\GraphQL\DataProducer\Entity\EntityUuid::resolve

File

tests/src/Kernel/DataProducer/EntityTest.php, line 292

Class

EntityTest
Data producers Entity test class.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer

Code

public function testResolveUuid() : void {
  $this->entity
    ->expects($this
    ->once())
    ->method('uuid')
    ->willReturn('some uuid');
  $this
    ->assertEquals('some uuid', $this
    ->executeDataProducer('entity_uuid', [
    'entity' => $this->entity,
  ]));
}