function ItemHalJsonTestBase::getExpectedCacheContexts

Same name in other branches
  1. 8.9.x core/modules/aggregator/tests/src/Functional/Hal/ItemHalJsonTestBase.php \Drupal\Tests\aggregator\Functional\Hal\ItemHalJsonTestBase::getExpectedCacheContexts()

Overrides ItemResourceTestBase::getExpectedCacheContexts

File

core/modules/hal/tests/src/Functional/aggregator/ItemHalJsonTestBase.php, line 93

Class

ItemHalJsonTestBase
ResourceTestBase for Item entity.

Namespace

Drupal\Tests\hal\Functional\aggregator

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.