You are here

protected function BlockResourceTestBase::getExpectedCacheContexts in Drupal 9

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()

The expected cache contexts for the GET/HEAD response of the test entity.

Return value

string[]

Overrides EntityResourceTestBase::getExpectedCacheContexts

See also

::testGet

File

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

Class

BlockResourceTestBase

Namespace

Drupal\Tests\block\Functional\Rest

Code

protected function getExpectedCacheContexts() {

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