protected function PermissionsTest::setUp in GraphQL 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/Framework/PermissionsTest.php \Drupal\Tests\graphql\Kernel\Framework\PermissionsTest::setUp()
Overrides GraphQLTestBase::setUp
File
- tests/
src/ Kernel/ Framework/ PermissionsTest.php, line 17
Class
- PermissionsTest
- Test if query handling respects permissions properly.
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');
}