diff --git a/core/modules/node/src/Tests/Views/FrontPageTest.php b/core/modules/node/src/Tests/Views/FrontPageTest.php index ffb5314..02999a6 100644 --- a/core/modules/node/src/Tests/Views/FrontPageTest.php +++ b/core/modules/node/src/Tests/Views/FrontPageTest.php @@ -266,10 +266,12 @@ protected function doTestFrontPageViewCacheTags($do_assert_views_caches) { $do_assert_views_caches, Cache::mergeTags($empty_node_listing_cache_tags, $cache_context_tags) ); + $expected_tags = Cache::mergeTags($empty_node_listing_cache_tags, $cache_context_tags); + $expected_tags = Cache::mergeTags($expected_tags, ['rendered', 'config:user.role.anonymous']); $this->assertPageCacheContextsAndTags( Url::fromRoute('view.frontpage.page_1'), $cache_contexts, - Cache::mergeTags($empty_node_listing_cache_tags, $cache_context_tags, ['rendered', 'config:user.role.anonymous']) + $expected_tags ); // Create some nodes on the frontpage view. Add more than 10 nodes in order @@ -312,10 +314,8 @@ protected function doTestFrontPageViewCacheTags($do_assert_views_caches) { 'node:15', ]; $cache_context_tags = \Drupal::service('cache_contexts_manager')->convertTokensToKeys($cache_contexts)->getCacheTags(); - $first_page_output_cache_tags = Cache::mergeTags( - $first_page_result_cache_tags, - $cache_context_tags, - [ + $first_page_output_cache_tags = Cache::mergeTags($first_page_result_cache_tags, $cache_context_tags); + $first_page_output_cache_tags = Cache::mergeTags($first_page_output_cache_tags, [ 'config:filter.format.plain_text', 'node_view', 'user_view',