protected function TermTest::getExpectedUnauthorizedAccessCacheability in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Functional/TermTest.php \Drupal\Tests\jsonapi\Functional\TermTest::getExpectedUnauthorizedAccessCacheability()
- 9 core/modules/jsonapi/tests/src/Functional/TermTest.php \Drupal\Tests\jsonapi\Functional\TermTest::getExpectedUnauthorizedAccessCacheability()
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ TermTest.php, line 388
Class
- TermTest
- JSON:API integration test for the "Term" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function getExpectedUnauthorizedAccessCacheability() {
$cacheability = parent::getExpectedUnauthorizedAccessCacheability();
$cacheability
->addCacheableDependency($this->entity);
return $cacheability;
}