You are here

protected function PathAliasHalJsonTestBase::getExpectedCacheContexts in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php \Drupal\Tests\path_alias\Functional\Hal\PathAliasHalJsonTestBase::getExpectedCacheContexts()

The expected cache contexts for the GET/HEAD response of the test entity.

Return value

string[]

Overrides EntityResourceTestBase::getExpectedCacheContexts

See also

::testGet

File

core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php, line 49

Class

PathAliasHalJsonTestBase
Base hal_json test class for the path_alias entity type.

Namespace

Drupal\Tests\path_alias\Functional\Hal

Code

protected function getExpectedCacheContexts() {
  return [
    'url.site',
    'user.permissions',
  ];
}