protected function GraphQLTestBase::defaultCacheContexts in GraphQL 8.3
Same name and namespace in other branches
- 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\KernelCode
protected function defaultCacheContexts() {
return [
'user.permissions',
'languages:language_url',
'languages:language_interface',
'languages:language_content',
];
}