You are here

protected function BaseFieldOverrideResourceTestBase::getExpectedCacheContexts in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php \Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase::getExpectedCacheContexts()
  2. 10 core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php \Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase::getExpectedCacheContexts()

The expected cache contexts for the GET/HEAD response of the test entity.

Return value

string[]

Overrides EntityResourceTestBase::getExpectedCacheContexts

See also

::testGet

File

core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php, line 94

Class

BaseFieldOverrideResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

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