function CommentHelperCase::deleteComment in Drupal 7
Delete comment.
Parameters
object $comment: Comment to delete.
1 call to CommentHelperCase::deleteComment()
- CommentInterfaceTest::testCommentInterface in modules/
comment/ comment.test - Test comment interface.
File
- modules/
comment/ comment.test, line 131 - 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.');
}