Skip to content
Snippets Groups Projects
Commit c0933a14 authored by catch's avatar catch
Browse files

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

Issue #2866252 by arshadcn, rakesh.gectcr: Refactor \Drupal\Tests\rest\Functional\EntityResource\Block\BlockResourceTestBase::getExpectedCacheTags
parent 626ea42c
No related branches found
No related tags found
No related merge requests found
......@@ -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']));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment