You are here

protected function GraphQLTestBase::defaultCacheContexts in GraphQL 8.4

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

Returns the default cache contexts used in assertions for this test.

Return value

string[] The list of cache contexts.

Overrides QueryResultAssertionTrait::defaultCacheContexts

1 method overrides GraphQLTestBase::defaultCacheContexts()
EntityDefinitionTest::defaultCacheContexts in tests/src/Kernel/DataProducer/EntityDefinitionTest.php
Returns the default cache contexts used in assertions for this test.

File

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

Class

GraphQLTestBase
Provides helper methods for kernel tests in GraphQL module.

Namespace

Drupal\Tests\graphql\Kernel

Code

protected function defaultCacheContexts() : array {
  return [
    'user.permissions',
  ];
}