You are here

protected function ActionResourceTestBase::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/system/tests/src/Functional/Rest/ActionResourceTestBase.php, line 76

Class

ActionResourceTestBase

Namespace

Drupal\Tests\system\Functional\Rest

Code

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