diff --git a/core/modules/comment/src/Tests/CommentInterfaceTest.php b/core/modules/comment/src/Tests/CommentInterfaceTest.php
index c775553..92822c2 100644
--- a/core/modules/comment/src/Tests/CommentInterfaceTest.php
+++ b/core/modules/comment/src/Tests/CommentInterfaceTest.php
@@ -155,7 +155,17 @@ public function testCommentInterface() {
     $reply_loaded->setPublished(FALSE);
     $reply_loaded->save();
     $this->drupalGet('comment/reply/node/' . $this->node->id() . '/comment/' . $reply_loaded->id());
-    $this->assertText(t('The comment you are replying to does not exist.'), 'Replying to an unpublished comment');
+    $this->assertText(t('The comment you are replying to does not exist.'), 'Replying to an unpublished comment is not possible with insufficient permissions.');
+    // Attempt to reply to an unpublished comment as an administrator.
+    $this->drupalLogin($this->adminUser);
+    $this->drupalGet('comment/reply/node/' . $this->node->id() . '/comment/' . $reply_loaded->id());
+    $this->assertNoText(t('The comment you are replying to does not exist.'), 'Replying to an unpublished comment as an administration user.');
+    $reply = $this->postComment(NULL, $this->randomMachineName(), $this->randomMachineName(), TRUE);
+    $this->assertTrue($this->commentExists($reply, TRUE), 'An administration user was able to comment to an unpublished comment.');
+    // Make sure the reply on the unpublished comment is unpublished as well.
+    $this->drupalLogin($this->webUser);
+    $this->drupalGet('node/' . $this->node->getOriginalId());
+    $this->assertFalse($this->commentExists($reply), 'The unpublished reply was not found.');
 
     // Attempt to post to node with comments disabled.
     $this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1, 'comment' => array(array('status' => CommentItemInterface::HIDDEN))));
