public function MongoDBLogTestCase::tearDown in MongoDB 6
Same name and namespace in other branches
- 8 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::tearDown()
- 7 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::tearDown()
Clear the MongoDB data: simpletest only clears the main SQL database.
Overrides DrupalWebTestCase::tearDown
See also
File
- mongodb_watchdog/
mongodb_watchdog.test, line 113 - Test class for MongoDB_watchdog.
Class
- MongoDBLogTestCase
- Test the behaviour of watchdog() mongodb_watchdog, not dblog.
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();
parent::tearDown();
}