protected function BlockTest::getExpectedUnauthorizedAccessCacheability in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Functional/BlockTest.php \Drupal\Tests\jsonapi\Functional\BlockTest::getExpectedUnauthorizedAccessCacheability()
- 9 core/modules/jsonapi/tests/src/Functional/BlockTest.php \Drupal\Tests\jsonapi\Functional\BlockTest::getExpectedUnauthorizedAccessCacheability()
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ BlockTest.php, line 175
Class
- BlockTest
- JSON:API integration test for the "Block" config entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function getExpectedUnauthorizedAccessCacheability() {
// @see \Drupal\block\BlockAccessControlHandler::checkAccess()
return parent::getExpectedUnauthorizedAccessCacheability()
->setCacheTags([
'4xx-response',
'config:block.block.llama',
'http_response',
'user:2',
])
->setCacheContexts([
'url.site',
'user.roles',
]);
}