You are here

function CommentModuleTestCase::delete_comment in SimpleTest 6

Delete comment.

Parameters

object $comment Comment to delete.:

File

tests/comment_module.test, line 265

Class

CommentModuleTestCase

Code

function delete_comment($comment) {
  $this
    ->drupalPost('comment/delete/' . $comment->id, array(), 'Delete');
  $this
    ->assertWantedText(t('The comment and all its replies have been deleted.'), 'Comment deleted.');
}