diff --git a/core/modules/comment/src/Tests/CommentAdminTest.php b/core/modules/comment/src/Tests/CommentAdminTest.php index b881ac2221..241baad7cd 100644 --- a/core/modules/comment/src/Tests/CommentAdminTest.php +++ b/core/modules/comment/src/Tests/CommentAdminTest.php @@ -105,7 +105,7 @@ public function testApprovalAdminInterface() { $this->postComment($this->node, $this->randomMachineName()); $this->drupalGet('admin/content/comment'); $this->assertText(Html::escape($this->node->label())); - $this->node->setPublished()->save(); + $this->node->setUnpublished()->save(); $this->drupalGet('admin/content/comment'); $this->assertNoText(Html::escape($this->node->label())); }