protected function FileResourceTestBase::getExpectedCacheContexts in Drupal 8
Same name and namespace in other branches
- 9 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getExpectedCacheContexts()
- 10 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
1 method overrides FileResourceTestBase::getExpectedCacheContexts()
- FileHalJsonAnonTest::getExpectedCacheContexts in core/
modules/ file/ tests/ src/ Functional/ Hal/ FileHalJsonAnonTest.php - The expected cache contexts for the GET/HEAD response of the test entity.
File
- core/
modules/ file/ tests/ src/ Functional/ Rest/ FileResourceTestBase.php, line 197
Class
Namespace
Drupal\Tests\file\Functional\RestCode
protected function getExpectedCacheContexts() {
return [
'user.permissions',
];
}