protected function DeployWebTestCase::tearDown in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 deploy.test \DeployWebTestCase::tearDown()
Tear down all sites.
@todo Make this transparent of how many sites we've set up.
Overrides DrupalWebTestCase::tearDown
File
- ./
deploy.test, line 62 - Deployment tests.
Class
- DeployWebTestCase
- Helper class.
Code
protected function tearDown() {
// Tear down current site.
parent::tearDown();
// We are making it easy for us (but a bit hacky) by using this method to
// clean out other environments that we've created.
simpletest_clean_database();
simpletest_clean_temporary_directories();
registry_rebuild();
cache_clear_all('simpletest', 'cache');
}