protected function FileHalJsonAnonTest::getExpectedCacheContexts in Drupal 9
Same name and namespace in other branches
- 8 core/modules/file/tests/src/Functional/Hal/FileHalJsonAnonTest.php \Drupal\Tests\file\Functional\Hal\FileHalJsonAnonTest::getExpectedCacheContexts()
The expected cache contexts for the GET/HEAD response of the test entity.
Return value
string[]
Overrides FileResourceTestBase::getExpectedCacheContexts
See also
::testGet
File
- core/
modules/ file/ tests/ src/ Functional/ Hal/ FileHalJsonAnonTest.php, line 104
Class
- FileHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\file\Functional\HalCode
protected function getExpectedCacheContexts() {
return [
'url.site',
'user.permissions',
];
}