protected function BlockResourceTestBase::getExpectedUnauthorizedAccessCacheability 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::getExpectedUnauthorizedAccessCacheability()
@todo Fix this in https://www.drupal.org/node/2820315.
Overrides EntityResourceTestBase::getExpectedUnauthorizedAccessCacheability
File
- core/
modules/ block/ tests/ src/ Functional/ Rest/ BlockResourceTestBase.php, line 149
Class
Namespace
Drupal\Tests\block\Functional\RestCode
protected function getExpectedUnauthorizedAccessCacheability() {
return (new CacheableMetadata())
->setCacheTags([
'4xx-response',
'http_response',
])
->setCacheContexts([
'user.roles',
]);
}