You are here

protected function EntityViewDisplayResourceTestBase::getExpectedCacheContexts in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewDisplayResourceTestBase::getExpectedCacheContexts()
  2. 10 core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewDisplayResourceTestBase::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/EntityViewDisplayResourceTestBase.php, line 103

Class

EntityViewDisplayResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

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