public function RoutingTest::testRouteLoad in GraphQL 8.4
@covers \Drupal\graphql\Plugin\GraphQL\DataProducer\Routing\RouteLoad::resolve
File
- tests/
src/ Kernel/ DataProducer/ RoutingTest.php, line 17
Class
- RoutingTest
- Data producers Routing test class.
Namespace
Drupal\Tests\graphql\Kernel\DataProducerCode
public function testRouteLoad() : void {
$result = $this
->executeDataProducer('route_load', [
'path' => '/user/logout',
]);
$this
->assertNotNull($result);
$this
->assertEquals('user.logout', $result
->getRouteName());
}