diff --git a/core/modules/tracker/tests/src/Functional/TrackerTest.php b/core/modules/tracker/tests/src/Functional/TrackerTest.php index 443a8c2525..6d14e7d5cf 100644 --- a/core/modules/tracker/tests/src/Functional/TrackerTest.php +++ b/core/modules/tracker/tests/src/Functional/TrackerTest.php @@ -155,8 +155,10 @@ public function testTrackerUser() { ]); $this->drupalGet('user/' . $this->user->id() . '/activity'); - $this->assertSession()->pageTextNotContains($this->nodes['unpublished']->label(), "Unpublished nodes do not show up in the user's tracker listing."); - $this->assertSession()->pageTextContains($this->nodes['my_published']->label(), "Published nodes show up in the user's tracker listing."); + // Unpublished nodes do not show up in the user's tracker listing. + $this->assertSession()->pageTextNotContains($this->nodes['unpublished']->label()); + // Published nodes show up in the user's tracker listing. + $this->assertSession()->pageTextContains($this->nodes['my_published']->label()); // Assert cache contexts. $this->assertCacheContexts([