You are here

protected function ItemResourceTestBase::getExpectedCacheContexts in Drupal 8

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

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 ItemResourceTestBase::getExpectedCacheContexts()
ItemHalJsonTestBase::getExpectedCacheContexts in core/modules/aggregator/tests/src/Functional/Hal/ItemHalJsonTestBase.php
The expected cache contexts for the GET/HEAD response of the test entity.

File

core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php, line 165

Class

ItemResourceTestBase
ResourceTestBase for Item entity.

Namespace

Drupal\Tests\aggregator\Functional\Rest

Code

protected function getExpectedCacheContexts() {

  // @see ::createEntity()
  return [
    'user.permissions',
  ];
}