You are here

protected function RestResourceConfigResourceTestBase::getExpectedCacheContexts in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php \Drupal\Tests\rest\Functional\Rest\RestResourceConfigResourceTestBase::getExpectedCacheContexts()
  2. 10 core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php \Drupal\Tests\rest\Functional\Rest\RestResourceConfigResourceTestBase::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/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php, line 97

Class

RestResourceConfigResourceTestBase

Namespace

Drupal\Tests\rest\Functional\Rest

Code

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