You are here

protected function BlockResourceTestBase::getExpectedCacheTags in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php \Drupal\Tests\block\Functional\Rest\BlockResourceTestBase::getExpectedCacheTags()
  2. 9 core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php \Drupal\Tests\block\Functional\Rest\BlockResourceTestBase::getExpectedCacheTags()

File

core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php, line 126

Class

BlockResourceTestBase

Namespace

Drupal\Tests\block\Functional\Rest

Code

protected function getExpectedCacheTags() {

  // Because the 'user.permissions' cache context is missing, the cache tag
  // for the anonymous user role is never added automatically.
  return array_values(array_diff(parent::getExpectedCacheTags(), [
    'config:user.role.anonymous',
  ]));
}