abstract protected function QueryResultAssertionTrait::defaultCacheContexts in GraphQL 8.3
Same name and namespace in other branches
- 8.4 tests/src/Traits/QueryResultAssertionTrait.php \Drupal\Tests\graphql\Traits\QueryResultAssertionTrait::defaultCacheContexts()
Return the default cache contexts for this test case.
Return value
string[] The default cache contexts.
2 calls to QueryResultAssertionTrait::defaultCacheContexts()
- QueryResultAssertionTrait::defaultCacheMetaData in tests/
src/ Traits/ QueryResultAssertionTrait.php - The default cache metadata object.
- QueryResultAssertionTrait::defaultMutationCacheMetaData in tests/
src/ Traits/ QueryResultAssertionTrait.php - The default mutation cache metadata object.
1 method overrides QueryResultAssertionTrait::defaultCacheContexts()
- GraphQLTestBase::defaultCacheContexts in tests/
src/ Kernel/ GraphQLTestBase.php - Return the default cache contexts for this test case.
File
- tests/
src/ Traits/ QueryResultAssertionTrait.php, line 45
Class
- QueryResultAssertionTrait
- Trait for easier assertion on GraphQL query results.
Namespace
Drupal\Tests\graphql\TraitsCode
protected abstract function defaultCacheContexts();