protected function ItemHalJsonTestBase::getExpectedCacheContexts in Drupal 9
Same name and namespace in other branches
- 8 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\HalCode
protected function getExpectedCacheContexts() {
return [
'url.site',
'user.permissions',
];
}