diff --git a/core/modules/tracker/tests/src/Functional/TrackerCommentTest.php b/core/modules/tracker/tests/src/Functional/TrackerCommentTest.php index 6b6394c..cdabb6c 100644 --- a/core/modules/tracker/tests/src/Functional/TrackerCommentTest.php +++ b/core/modules/tracker/tests/src/Functional/TrackerCommentTest.php @@ -90,7 +90,7 @@ public function testTrackerUser() { $this->assertCacheContexts(['languages:language_interface', 'route', 'theme', 'url.query_args:' . MainContentViewSubscriber::WRAPPER_FORMAT, 'url.query_args.pagers:0', 'user', 'user.node_grants:view']); // Assert cache tags for the visible nodes (including owners) and node list // cache tag. - $expected_tags = Cache::mergeTags($this->nodes['my_published']->getCacheTags(), $my_published->getOwner()->getCacheTags()); + $expected_tags = Cache::mergeTags($this->nodes['my_published']->getCacheTags(), $this->nodes['my_published']->getOwner()->getCacheTags()); $expected_tags = Cache::mergeTags($expected_tags, $this->nodes['other_published_my_comment']->getCacheTags()); $expected_tags = Cache::mergeTags($expected_tags, $this->nodes['other_published_my_comment']->getOwner()->getCacheTags()); // Because the 'user.permissions' cache context is being optimized away.