You are here

protected function BlockResourceTestBase::getExpectedCacheContexts in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php \Drupal\Tests\block\Functional\Rest\BlockResourceTestBase::getExpectedCacheContexts()
  2. 9 core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php \Drupal\Tests\block\Functional\Rest\BlockResourceTestBase::getExpectedCacheContexts()

File

core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php, line 118

Class

BlockResourceTestBase

Namespace

Drupal\Tests\block\Functional\Rest

Code

protected function getExpectedCacheContexts() {

  // @see ::createEntity()
  return [
    'url.site',
  ];
}