function simpletest_clean_environment in SimpleTest 7
Same name and namespace in other branches
- 8.3 simpletest.module \simpletest_clean_environment()
- 6.2 simpletest.module \simpletest_clean_environment()
- 6 simpletest.module \simpletest_clean_environment()
- 7.2 simpletest.module \simpletest_clean_environment()
Remove all temporary database tables and directories.
1 call to simpletest_clean_environment()
- simpletest_uninstall in ./
simpletest.install - Implement hook_uninstall().
1 string reference to 'simpletest_clean_environment'
- simpletest_test_form in ./
simpletest.pages.inc - List tests arranged in groups that can be selected and run.
File
- ./
simpletest.module, line 398 - Provides testing functionality.
Code
function simpletest_clean_environment() {
simpletest_clean_database();
simpletest_clean_temporary_directories();
if (variable_get('simpletest_clear_results', TRUE)) {
$count = simpletest_clean_results_table();
drupal_set_message(format_plural($count, 'Removed 1 test result.', 'Removed @count test results.'));
}
else {
drupal_set_message(t('Clear results is disabled and the test results table will not be cleared.'), 'warning');
}
// Detect test classes that have been added, renamed or deleted.
registry_rebuild();
cache_clear_all('simpletest', 'cache');
}