.../views/src/Plugin/views/display/DisplayPluginBase.php | 1 - core/modules/views/src/Tests/GlossaryTest.php | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index 7f3d59e..92c393f 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -2311,7 +2311,6 @@ public function getCacheMetadata() { $this->display['cache_metadata']['tags'] = $cache_metadata->getCacheTags(); } else { - debug($this->display['cache_metadata']); $cache_metadata = (new CacheableMetadata()) ->setCacheMaxAge($this->display['cache_metadata']['max_age']) ->setCacheContexts($this->display['cache_metadata']['contexts']) diff --git a/core/modules/views/src/Tests/GlossaryTest.php b/core/modules/views/src/Tests/GlossaryTest.php index 7d55f85..8919854 100644 --- a/core/modules/views/src/Tests/GlossaryTest.php +++ b/core/modules/views/src/Tests/GlossaryTest.php @@ -73,7 +73,18 @@ public function testGlossaryView() { // Verify cache tags. $this->assertPageCacheContextsAndTags($url, ['languages:' . LanguageInterface::TYPE_CONTENT, 'languages:' . LanguageInterface::TYPE_INTERFACE, 'theme', 'url', 'user.node_grants:view', 'user.permissions'], [ 'config:views.view.glossary', + // Listed for letter 'a'. 'node:' . $nodes_by_char['a'][0]->id(), 'node:' . $nodes_by_char['a'][1]->id(), 'node:' . $nodes_by_char['a'][2]->id(), + // Link for letter 'd'. + 'node:1', + // Link for letter 'p'. + 'node:16', + // Link for letter 'r'. + 'node:2', + // Link for letter 'l'. + 'node:21', + // Link for letter 'u'. + 'node:6', 'node_list', 'user:0', 'user_list',