protected function ViewResourceTestBase::getExpectedCacheContexts in Drupal 8
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/ views/ tests/ src/ Functional/ Rest/ ViewResourceTestBase.php, line 92
Class
Namespace
Drupal\Tests\views\Functional\RestCode
protected function getExpectedCacheContexts() {
return [
'url.site',
'user.permissions',
];
}