You are here

public function MongoDBLogTestCase::tearDown in MongoDB 7

Same name and namespace in other branches
  1. 8 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::tearDown()
  2. 6 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::tearDown()

Clear the MongoDB data: simpletest only clears the main SQL database.

Non-PHPdoc.

Overrides DrupalWebTestCase::tearDown

See also

DrupalWebTestCase::tearDown()

File

mongodb_watchdog/mongodb_watchdog.test, line 108
Contains \MongoDBLogTestCase.

Class

MongoDBLogTestCase

Code

public function tearDown() {
  $this->group = t('Teardown');
  $this
    ->pass('Clear watchdog collections', $this->group);
  module_load_include('inc', 'mongodb_watchdog', 'mongodb_watchdog.admin');
  mongodb_watchdog_clear_log_submit();

  // Support using the MongoDB cache.
  drupal_flush_all_caches();
  parent::tearDown();
}