function ViewResourceTestBase::getExpectedCacheContexts

Overrides EntityResourceTestBase::getExpectedCacheContexts

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',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.