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