You are here

protected function DbLogResourceTest::getExpectedUnauthorizedAccessCacheability in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::getExpectedUnauthorizedAccessCacheability()
  2. 9 core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::getExpectedUnauthorizedAccessCacheability()

File

core/modules/dblog/tests/src/Functional/DbLogResourceTest.php, line 155

Class

DbLogResourceTest
Tests the watchdog database log resource.

Namespace

Drupal\Tests\dblog\Functional

Code

protected function getExpectedUnauthorizedAccessCacheability() {
  return (new CacheableMetadata())
    ->setCacheTags([
    '4xx-response',
    'http_response',
  ])
    ->setCacheContexts([
    'user.permissions',
  ]);
}