You are here

protected function FieldStorageConfigResourceTestBase::getExpectedCacheContexts in Drupal 8

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/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php, line 98

Class

FieldStorageConfigResourceTestBase

Namespace

Drupal\Tests\field\Functional\Rest

Code

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