public function MongoDBLogTestCase::tearDown in MongoDB 7
Same name and namespace in other branches
- 8 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::tearDown()
- 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
File
- mongodb_watchdog/
mongodb_watchdog.test, line 108 - Contains \MongoDBLogTestCase.
Class
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();
}