You are here

function VarnishTestCase::_commentDeleteHelper in Varnish 6

Does exactly the same thing that comment.module does.

Parameters

object $comment the comment object.:

See also

comment_confirm_delete_submit()

1 call to VarnishTestCase::_commentDeleteHelper()
VarnishTestCase::deleteComment in ./varnish.test
Delete a drupal comment.

File

./varnish.test, line 117
Tests the basic functionality of Varnish.

Class

VarnishTestCase
Base class for Varnish Test Cases.

Code

function _commentDeleteHelper($comment) {

  // Delete comment and its replies.
  _comment_delete_thread($comment);
  _comment_update_node_statistics($comment->nid);

  // Clear the cache so an anonymous user sees that his comment was deleted.
  cache_clear_all();
}