protected function CommentResourceTestBase::getExpectedCacheContexts in Drupal 8
Same name and namespace in other branches
- 9 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::getExpectedCacheContexts()
- 10 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::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/ comment/ tests/ src/ Functional/ Rest/ CommentResourceTestBase.php, line 266
Class
Namespace
Drupal\Tests\comment\Functional\RestCode
protected function getExpectedCacheContexts() {
return Cache::mergeContexts([
'languages:language_interface',
'theme',
], parent::getExpectedCacheContexts());
}