Commit c0933a14 authored by catch's avatar catch

Issue #2866252 by arshadcn, rakesh.gectcr: Refactor...

Issue #2866252 by arshadcn, rakesh.gectcr: Refactor \Drupal\Tests\rest\Functional\EntityResource\Block\BlockResourceTestBase::getExpectedCacheTags
parent 626ea42c
......@@ -122,9 +122,7 @@ protected function getExpectedCacheContexts() {
protected function getExpectedCacheTags() {
// Because the 'user.permissions' cache context is missing, the cache tag
// for the anonymous user role is never added automatically.
return array_values(array_filter(parent::getExpectedCacheTags(), function ($tag) {
return $tag !== 'config:user.role.anonymous';
}));
return array_values(array_diff(parent::getExpectedCacheTags(), ['config:user.role.anonymous']));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment