only in patch2: unchanged: --- a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php +++ b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php @@ -102,6 +102,7 @@ function testPageCacheTags() { 'config:block.block.bartik_local_tasks', 'node_view', 'node:' . $node_1->id(), + 'user:0', 'user:' . $author_1->id(), 'config:filter.format.basic_html', 'config:system.menu.account', @@ -152,6 +153,7 @@ function testPageCacheTags() { // FinishResponseSubscriber adds this cache tag to responses that have the // 'user.permissions' cache context for anonymous users. 'config:user.role.anonymous', + 'user:0', )); } only in patch2: unchanged: --- a/core/modules/tracker/src/Tests/TrackerTest.php +++ b/core/modules/tracker/src/Tests/TrackerTest.php @@ -90,6 +90,12 @@ function testTrackerAll() { // Assert cache tags for the action/tabs blocks, visible node, and node list // cache tag. $expected_tags = Cache::mergeTags($published->getCacheTags(), $published->getOwner()->getCacheTags()); + // Because of 'user.permissions' cache context is being optimized away. + $role_tags = []; + foreach ($this->user->getRoles() as $rid) { + $role_tags[] = "config:user.role.$rid"; + } + $expected_tags = Cache::mergeTags($expected_tags, $role_tags); $block_tags = [ 'block_view', 'config:block.block.page_actions_block', @@ -170,6 +176,12 @@ function testTrackerUser() { $expected_tags = Cache::mergeTags($my_published->getCacheTags(), $my_published->getOwner()->getCacheTags()); $expected_tags = Cache::mergeTags($expected_tags, $other_published_my_comment->getCacheTags()); $expected_tags = Cache::mergeTags($expected_tags, $other_published_my_comment->getOwner()->getCacheTags()); + // Because of 'user.permissions' cache context is being optimized away. + $role_tags = []; + foreach ($this->user->getRoles() as $rid) { + $role_tags[] = "config:user.role.$rid"; + } + $expected_tags = Cache::mergeTags($expected_tags, $role_tags); $block_tags = [ 'block_view', 'config:block.block.page_actions_block',