You are here

protected function GraphQLTestBase::defaultCacheContexts in GraphQL 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Kernel/GraphQLTestBase.php \Drupal\Tests\graphql\Kernel\GraphQLTestBase::defaultCacheContexts()

Return the default cache contexts for this test case.

Return value

string[] The default cache contexts.

Overrides QueryResultAssertionTrait::defaultCacheContexts

File

tests/src/Kernel/GraphQLTestBase.php, line 80

Class

GraphQLTestBase
Base class for GraphQL tests.

Namespace

Drupal\Tests\graphql\Kernel

Code

protected function defaultCacheContexts() {
  return [
    'user.permissions',
    'languages:language_url',
    'languages:language_interface',
    'languages:language_content',
  ];
}