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