protected function FileHalJsonAnonTest::getExpectedCacheContexts in Drupal 8
Same name and namespace in other branches
- 9 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 113
Class
- FileHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\file\Functional\HalCode
protected function getExpectedCacheContexts() {
return [
'url.site',
'user.permissions',
];
}