protected function TermResourceTestBase::getExpectedCacheContexts in Drupal 8
Same name and namespace in other branches
- 9 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getExpectedCacheContexts()
- 10 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getExpectedCacheContexts()
The expected cache contexts for the GET/HEAD response of the test entity.
Return value
string[]
Overrides EntityResourceTestBase::getExpectedCacheContexts
See also
::testGet
File
- core/
modules/ taxonomy/ tests/ src/ Functional/ Rest/ TermResourceTestBase.php, line 322
Class
Namespace
Drupal\Tests\taxonomy\Functional\RestCode
protected function getExpectedCacheContexts() {
return Cache::mergeContexts([
'url.site',
], $this->container
->getParameter('renderer.config')['required_cache_contexts']);
}