You are here

protected function FileHalJsonAnonTest::getExpectedCacheContexts in Drupal 8

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

Code

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