function WorkspaceResourceTestBase::getExpectedCacheContexts
The expected cache contexts for the GET/HEAD response of the test entity.
Return value
string[] The expected cache contexts.
Overrides EntityResourceTestBase::getExpectedCacheContexts
File
-
core/
modules/ workspaces/ tests/ src/ Functional/ Rest/ WorkspaceResourceTestBase.php, line 213
Class
- WorkspaceResourceTestBase
- Base class for workspace EntityResource tests.
Namespace
Drupal\Tests\workspaces\Functional\RestCode
protected function getExpectedCacheContexts() {
return [
'user.permissions',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.