You are here

protected function UserPermissionsContextTest::setUp in GraphQL 8.4

Overrides GraphQLTestBase::setUp

File

tests/src/Kernel/Framework/UserPermissionsContextTest.php, line 20

Class

UserPermissionsContextTest
Verify that all queries declare the user.permissions cache context.

Namespace

Drupal\Tests\graphql\Kernel\Framework

Code

protected function setUp() : void {
  parent::setUp();
  $schema = <<<GQL
      schema {
        query: Query
      }

      type Query {
        root: String
      }
GQL;
  $this
    ->setUpSchema($schema);
}