You are here

protected function CommentResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability in Drupal 10

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

File

core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php, line 373

Class

CommentResourceTestBase

Namespace

Drupal\Tests\comment\Functional\Rest

Code

protected function getExpectedUnauthorizedEntityAccessCacheability($is_authenticated) {

  // @see \Drupal\comment\CommentAccessControlHandler::checkAccess()
  return parent::getExpectedUnauthorizedEntityAccessCacheability($is_authenticated)
    ->addCacheTags([
    'comment:1',
  ]);
}