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