function BlockResourceTestBase::getExpectedCacheContexts
The expected cache contexts for the GET/HEAD response of the test entity.
Return value
string[]
Overrides EntityResourceTestBase::getExpectedCacheContexts
File
- 
              core/
modules/ block/ tests/ src/ Functional/ Rest/ BlockResourceTestBase.php, line 120  
Class
Namespace
Drupal\Tests\block\Functional\RestCode
protected function getExpectedCacheContexts() {
  // @see ::createEntity()
  return [
    'url.site',
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.