function CommentActionsTestCase::clearWatchdog

Helper function: clear the watchdog.

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

File

drupal/modules/comment/comment.test, line 2035
Tests for comment.module.

Class

CommentActionsTestCase
Test actions provided by the comment module.

Code

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