You are here

protected function PathAliasResourceTestBase::getExpectedCacheContexts in Drupal 8

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

Return value

string[]

Overrides EntityResourceTestBase::getExpectedCacheContexts

See also

::testGet

1 method overrides PathAliasResourceTestBase::getExpectedCacheContexts()
PathAliasHalJsonTestBase::getExpectedCacheContexts in core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php
The expected cache contexts for the GET/HEAD response of the test entity.

File

core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php, line 125

Class

PathAliasResourceTestBase
Base class for path_alias EntityResource tests.

Namespace

Drupal\Tests\path_alias\Functional\Rest

Code

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