function simpletest_clean_environment
7.x simpletest.module | simpletest_clean_environment() |
Remove all temporary database tables and directories.
1 string reference to 'simpletest_clean_environment'
- simpletest_test_form in drupal-7.x/
modules/ simpletest/ simpletest.pages.inc - List tests arranged in groups that can be selected and run.
File
- drupal-7.x/
modules/ simpletest/ simpletest.module, line 518 - 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');
}