protected function ResultTest::setUp in GraphQL 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/Framework/ResultTest.php \Drupal\Tests\graphql\Kernel\Framework\ResultTest::setUp()
Overrides GraphQLTestBase::setUp
File
- tests/
src/ Kernel/ Framework/ ResultTest.php, line 17
Class
- ResultTest
- Test the whole query result pipeline.
Namespace
Drupal\Tests\graphql\Kernel\FrameworkCode
protected function setUp() : void {
parent::setUp();
$schema = <<<GQL
schema {
query: Query
}
type Query {
root: String
}
GQL;
$this
->setUpSchema($schema);
$this
->mockResolver('Query', 'root', 'test');
}