You are here

protected function ContentLanguageSettingsResourceTestBase::getExpectedCacheContexts in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/language/tests/src/Functional/Rest/ContentLanguageSettingsResourceTestBase.php \Drupal\Tests\language\Functional\Rest\ContentLanguageSettingsResourceTestBase::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/modules/language/tests/src/Functional/Rest/ContentLanguageSettingsResourceTestBase.php, line 85

Class

ContentLanguageSettingsResourceTestBase

Namespace

Drupal\Tests\language\Functional\Rest

Code

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