abstract protected function QueryResultAssertionTrait::defaultCacheContexts in GraphQL 8.4
Same name and namespace in other branches
- 8.3 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 - Returns the default cache contexts used in assertions for this test.
File
- tests/
src/ Traits/ QueryResultAssertionTrait.php, line 48
Class
- QueryResultAssertionTrait
- Trait for easier assertion on GraphQL query results.
Namespace
Drupal\Tests\graphql\TraitsCode
protected abstract function defaultCacheContexts();