protected function EntityFormDisplayResourceTestBase::getExpectedCacheContexts in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityFormDisplayResourceTestBase::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/
tests/ Drupal/ FunctionalTests/ Rest/ EntityFormDisplayResourceTestBase.php, line 145
Class
Namespace
Drupal\FunctionalTests\RestCode
protected function getExpectedCacheContexts() {
return [
'user.permissions',
];
}