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\DataProducerCode
public function testResolveEntityLoad() : void {
$result = $this
->executeDataProducer('entity_load', [
'type' => $this->node
->getEntityTypeId(),
'id' => $this->node
->id(),
]);
$this
->assertEquals($this->node
->id(), $result
->id());
}