function CommentHelperCase::deleteComment
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
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.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.