You are here

protected function GraphQLTestBase::defaultCacheMaxAge in GraphQL 8.4

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

Returns the default cache maximum age for the test.

Overrides QueryResultAssertionTrait::defaultCacheMaxAge

File

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

Class

GraphQLTestBase
Provides helper methods for kernel tests in GraphQL module.

Namespace

Drupal\Tests\graphql\Kernel

Code

protected function defaultCacheMaxAge() : int {
  return Cache::PERMANENT;
}