protected function EditorResourceTestBase::getExpectedCacheContexts in Drupal 8
Same name and namespace in other branches
- 9 core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php \Drupal\Tests\editor\Functional\Rest\EditorResourceTestBase::getExpectedCacheContexts()
- 10 core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php \Drupal\Tests\editor\Functional\Rest\EditorResourceTestBase::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/ editor/ tests/ src/ Functional/ Rest/ EditorResourceTestBase.php, line 168
Class
- EditorResourceTestBase
- ResourceTestBase for Editor entity.
Namespace
Drupal\Tests\editor\Functional\RestCode
protected function getExpectedCacheContexts() {
// @see ::createEntity()
return [
'user.permissions',
];
}