1 comment.test CommentHelperCase::deleteComment($comment)

Deletes a comment.

Parameters

object $comment: Comment to delete.

File

core/modules/comment/tests/comment.test, line 181
Tests for the Comment module.

Class

CommentHelperCase

Code

function deleteComment($comment) {
  $this->backdropPost('comment/' . $comment->id . '/delete', array(), t('Delete'));
  $this->assertText(t('The comment and all its replies have been deleted.'), 'Comment deleted.');
}