You are here

protected function EditorResourceTestBase::getExpectedCacheContexts in Drupal 9

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

Class

EditorResourceTestBase
ResourceTestBase for Editor entity.

Namespace

Drupal\Tests\editor\Functional\Rest

Code

protected function getExpectedCacheContexts() {

  // @see ::createEntity()
  return [
    'user.permissions',
  ];
}