function ItemResourceTestBase::getExpectedCacheContexts
Same name in other branches
- 8.9.x 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/ hal/ tests/ src/ Functional/ aggregator/ 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 166
Class
- ItemResourceTestBase
- ResourceTestBase for Item entity. @group legacy
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.