function TermResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability

Same name and namespace in other branches
  1. 11.x core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
  2. 10 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()
  3. 8.9.x core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability()

File

core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php, line 380

Class

TermResourceTestBase

Namespace

Drupal\Tests\taxonomy\Functional\Rest

Code

protected function getExpectedUnauthorizedEntityAccessCacheability($is_authenticated) {
  // @see \Drupal\taxonomy\TermAccessControlHandler::checkAccess()
  return parent::getExpectedUnauthorizedEntityAccessCacheability($is_authenticated)->addCacheTags([
    'taxonomy_term:1',
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.