function CommentHelperCase::deleteComment

Delete comment.

Parameters

object $comment: Comment to delete.

1 call to CommentHelperCase::deleteComment()
CommentInterfaceTest::testCommentInterface in drupal/modules/comment/comment.test
Test comment interface.

File

drupal/modules/comment/comment.test, line 129
Tests for comment.module.

Class

CommentHelperCase
@file Tests for comment.module.

Code

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