function CommentActionsTest::clearWatchdog

Clears watchdog.

1 call to CommentActionsTest::clearWatchdog()
CommentActionsTest::testCommentPublishUnpublishActions in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentActionsTest.php
Tests comment publish and unpublish actions.

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentActionsTest.php, line 82
Definition of Drupal\comment\Tests\CommentActionsTest.

Class

CommentActionsTest
Tests actions provided by the Comment module.

Namespace

Drupal\comment\Tests

Code

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