You are here

protected function FileHalJsonAnonTest::getExpectedCacheContexts in Drupal 9

Same name and namespace in other branches
  1. 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\Hal

Code

protected function getExpectedCacheContexts() {
  return [
    'url.site',
    'user.permissions',
  ];
}