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