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