You are here

public function EntityTest::testResolveEntityLoad in GraphQL 8.4

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

File

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

Class

EntityTest
Data producers Entity test class.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer

Code

public function testResolveEntityLoad() : void {
  $result = $this
    ->executeDataProducer('entity_load', [
    'type' => $this->node
      ->getEntityTypeId(),
    'id' => $this->node
      ->id(),
  ]);
  $this
    ->assertEquals($this->node
    ->id(), $result
    ->id());
}