function MongoDBLogTestCase::tearDown in MongoDB 8
Same name and namespace in other branches
- 6 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.
(non-PHPdoc)
See also
DrupalWebTestCase::tearDown()
File
- mongodb_watchdog/
mongodb_watchdog.test, line 98 - Test class for MongoDB_watchdog.
Class
- MongoDBLogTestCase
- Test the behaviour of watchdog() mongodb_watchdog, not dblog
Code
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();
}