function PathAliasResourceTestBase::getExpectedCacheContexts

Overrides EntityResourceTestBase::getExpectedCacheContexts

1 method overrides PathAliasResourceTestBase::getExpectedCacheContexts()
PathAliasHalJsonTestBase::getExpectedCacheContexts in core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php
The expected cache contexts for the GET/HEAD response of the test entity.

File

core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php, line 125

Class

PathAliasResourceTestBase
Base class for path_alias EntityResource tests.

Namespace

Drupal\Tests\path_alias\Functional\Rest

Code

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

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