public function InternalRequestTest::testInternalRequests in GraphQL 8.3
Test internal requests.
File
- modules/
graphql_core/ tests/ src/ Kernel/ Routing/ InternalRequestTest.php, line 30
Class
- InternalRequestTest
- Test internal requests.
Namespace
Drupal\Tests\graphql_core\Kernel\RoutingCode
public function testInternalRequests() {
$metadata = $this
->defaultCacheMetaData();
$this
->assertResults($this
->getQueryFromFile('internal_requests.gql'), [], [
'ok' => [
'request' => [
'code' => 200,
'content' => '<p>Test</p>',
],
],
'redirect' => [
'request' => [
'code' => 302,
'location' => '/graphql-request/test',
],
],
], $metadata);
}