protected function FieldConfigResourceTestBase::getExpectedCacheContexts in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldConfigResourceTestBase::getExpectedCacheContexts()
- 10 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',
];
}