protected function EntityTestMapFieldHalJsonAnonTest::getExpectedCacheContexts in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestMapFieldHalJsonAnonTest.php \Drupal\Tests\entity_test\Functional\Hal\EntityTestMapFieldHalJsonAnonTest::getExpectedCacheContexts()
The expected cache contexts for the GET/HEAD response of the test entity.
Return value
string[]
Overrides EntityTestMapFieldResourceTestBase::getExpectedCacheContexts
See also
::testGet
File
- core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Hal/ EntityTestMapFieldHalJsonAnonTest.php, line 101
Class
- EntityTestMapFieldHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\entity_test\Functional\HalCode
protected function getExpectedCacheContexts() {
return [
'url.site',
'user.permissions',
];
}