diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php index d15f1f7..bec3930 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php @@ -63,11 +63,12 @@ function testCommentInterface() { $this->setCommentSubject(TRUE); $this->setCommentPreview(DRUPAL_OPTIONAL); - // Test changing the comment author to "Anonymous". $this->drupalGet('comment/' . $comment->id() . '/edit'); $this->assertTitle(t('Edit comment @title | Drupal', array( '@title' => $comment->subject->value, ))); + + // Test changing the comment author to "Anonymous". $comment = $this->postComment(NULL, $comment->comment_body->value, $comment->subject->value, array('name' => '')); $this->assertTrue(empty($comment->name->value) && $comment->uid->target_id == 0, 'Comment author successfully changed to anonymous.');