You are here

function CommentActionsTestCase::clearWatchdog in Drupal 7

Helper function: clear the watchdog.

2 calls to CommentActionsTestCase::clearWatchdog()
CommentActionsTestCase::testCommentPublishUnpublishActions in modules/comment/comment.test
Test comment publish and unpublish actions.
CommentActionsTestCase::testCommentUnpublishByKeyword in modules/comment/comment.test
Tests the unpublish comment by keyword action.

File

modules/comment/comment.test, line 2037
Tests for comment.module.

Class

CommentActionsTestCase
Test actions provided by the comment module.

Code

function clearWatchdog() {
  db_truncate('watchdog')
    ->execute();
}