You are here

protected function ItemHalJsonTestBase::getExpectedCacheContexts in Drupal 8

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

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

Return value

string[]

Overrides ItemResourceTestBase::getExpectedCacheContexts

See also

::testGet

File

core/modules/aggregator/tests/src/Functional/Hal/ItemHalJsonTestBase.php, line 93

Class

ItemHalJsonTestBase
ResourceTestBase for Item entity.

Namespace

Drupal\Tests\aggregator\Functional\Hal

Code

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