function DrupalUnitTests::run in SimpleTest 5
Same name and namespace in other branches
- 6 drupal_unit_tests.php \DrupalUnitTests::run()
Invokes run() on all of the held test cases, instantiating them if necessary. The Druapl version uses paintHeader instead of paintGroupStart to avoid collapsing of the very top level.
@access public
Parameters
SimpleReporter $reporter Current test reporter.:
File
- ./
drupal_unit_tests.php, line 101
Class
Code
function run(&$reporter) {
cache_clear_all();
@set_time_limit(0);
ignore_user_abort(true);
// Disable devel output, check simpletest settings page
if (!variable_get('simpletest_devel', false)) {
$GLOBALS['devel_shutdown'] = FALSE;
}
parent::run($reporter);
// Restores modules
foreach ($this->_cleanupModules as $name => $status) {
db_query("UPDATE {system} SET status = %d WHERE name = '%s' AND type = 'module'", $status, $name);
}
$this->_cleanupModules = array();
}