protected function BlockResourceTestBase::getExpectedCacheContexts in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php \Drupal\Tests\block\Functional\Rest\BlockResourceTestBase::getExpectedCacheContexts()
The expected cache contexts for the GET/HEAD response of the test entity.
Return value
string[]
Overrides EntityResourceTestBase::getExpectedCacheContexts
See also
::testGet
File
- core/
modules/ block/ tests/ src/ Functional/ Rest/ BlockResourceTestBase.php, line 117
Class
Namespace
Drupal\Tests\block\Functional\RestCode
protected function getExpectedCacheContexts() {
// @see ::createEntity()
return [
'url.site',
];
}