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