public function __construct()
 {
     parent::__construct();
     $this->initDb();
     $system_event_dao = new SystemEventDao();
     $this->system_event_purger = new SystemEventPurger($system_event_dao);
 }
 public function __construct()
 {
     parent::__construct();
     $this->initDb();
     $this->disk_usage_dao = new Statistics_DiskUsageDao(CodendiDataAccess::instance());
     $this->disk_data_purger = new Statistics_DiskUsagePurger($this->disk_usage_dao);
 }
Esempio n. 3
0
 public function tearDown()
 {
     if (is_file(ForgeConfig::get('codendi_log') . '/tv3_to_tv5.log')) {
         unlink(ForgeConfig::get('codendi_log') . '/tv3_to_tv5.log');
     }
     ForgeConfig::restore();
     parent::tearDown();
 }
Esempio n. 4
0
 public function tearDown() {
     $this->mysqli->query('DELETE FROM groups WHERE unix_group_name = "short-name"');
     unset($GLOBALS['svn_prefix']);
     unset($GLOBALS['cvs_prefix']);
     unset($GLOBALS['grpdir_prefix']);
     unset($GLOBALS['ftp_frs_dir_prefix']);
     unset($GLOBALS['ftp_anon_dir_prefix']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['sys_cookie_prefix']);
     unset($GLOBALS['sys_force_ssl']);
     parent::tearDown();
 }
 /**
  * Use this method if you need to drop the database after a test
  */
 protected function resetDatabase()
 {
     self::$db_initialized = false;
 }
Esempio n. 6
0
 public function tearDown()
 {
     ForgeConfig::restore();
     $this->mysqli->query('DELETE FROM groups WHERE unix_group_name = "short-name"');
     unset($GLOBALS['svn_prefix']);
     unset($GLOBALS['cvs_prefix']);
     unset($GLOBALS['grpdir_prefix']);
     unset($GLOBALS['ftp_frs_dir_prefix']);
     unset($GLOBALS['ftp_anon_dir_prefix']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['sys_cookie_prefix']);
     unset($GLOBALS['sys_force_ssl']);
     $GLOBALS['sys_pluginsroot'] = $this->old_sys_pluginsroot;
     $GLOBALS['sys_custompluginsroot'] = $this->old_sys_custompluginsroot;
     EventManager::clearInstance();
     PluginManager::instance()->invalidateCache();
     PluginFactory::clearInstance();
     $GLOBALS = $this->old_globals;
     parent::tearDown();
 }
Esempio n. 7
0
 public function tearDown()
 {
     $this->truncateTable('tracker_artifact_priority');
     parent::tearDown();
 }