| 7 comment.test | CommentHelperCase::deleteComment($comment) |
| 8 comment.test | CommentHelperCase::deleteComment(Comment $comment) |
Delete comment.
Parameters
object $comment: Comment to delete.
File
- modules/
comment/ comment.test, line 123 - 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.'), t('Comment deleted.'));
}
Login or register to post comments