You are here

protected function CommentTest::getExpectedUnauthorizedAccessCacheability in JSON:API 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/CommentTest.php \Drupal\Tests\jsonapi\Functional\CommentTest::getExpectedUnauthorizedAccessCacheability()

Overrides ResourceTestBase::getExpectedUnauthorizedAccessCacheability

File

tests/src/Functional/CommentTest.php, line 400

Class

CommentTest
JSON API integration test for the "Comment" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected function getExpectedUnauthorizedAccessCacheability() {

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