public function ResolverBuilderTest::setUp in GraphQL 8.4
Overrides GraphQLTestBase::setUp
File
- tests/
src/ Kernel/ ResolverBuilderTest.php, line 25
Class
- ResolverBuilderTest
- Tests that the resolver builder behaves correctly.
Namespace
Drupal\Tests\graphql\KernelCode
public function setUp() : void {
parent::setUp();
$schema = <<<GQL
type Query {
me: String
tree(id: Int): Tree
}
type Tree {
id(someArg: Int): Int
name: String
uri: String
context: Context
}
type Context {
myContext: String
}
GQL;
$this
->setUpSchema($schema);
}