function NodeResourceTestBase::getExpectedCacheContexts

Same name in other branches
  1. 10 core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php \Drupal\Tests\node\Functional\Rest\NodeResourceTestBase::getExpectedCacheContexts()

Overrides EntityResourceTestBase::getExpectedCacheContexts

File

core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php, line 239

Class

NodeResourceTestBase

Namespace

Drupal\Tests\node\Functional\Rest

Code

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

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