function ItemResourceTestBase::getExpectedCacheContexts
Same name in other branches
- 9 core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php \Drupal\Tests\aggregator\Functional\Rest\ItemResourceTestBase::getExpectedCacheContexts()
Overrides EntityResourceTestBase::getExpectedCacheContexts
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\RestCode
protected function getExpectedCacheContexts() {
// @see ::createEntity()
return [
'user.permissions',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.