You are here

protected function ViewResourceTestBase::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/views/tests/src/Functional/Rest/ViewResourceTestBase.php, line 92

Class

ViewResourceTestBase

Namespace

Drupal\Tests\views\Functional\Rest

Code

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