/** * Invokes run() on all of the held test cases, instantiating * them if necessary. * The Drupal version uses paintHeader instead of paintGroupStart * to avoid collapsing of the very top level. * * @param SimpleReporter $reporter Current test reporter. * @access public */ 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(); }
/** * 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. * * @param SimpleReporter $reporter Current test reporter. * @access public */ function run(&$reporter) { cache_clear_all(); @set_time_limit(0); ignore_user_abort(true); // Disable known problematic modules $this->drupalModuleDisable('devel'); 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(); }