You are here

public function EntityTest::testResolveUnknownEntityLoad in GraphQL 8.4

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

File

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

Class

EntityTest
Data producers Entity test class.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer

Code

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

  // @todo Add metadata check.
  // $this->assertContains('node_list', $metadata->getCacheTags());
  $this
    ->assertNull($result);
}