public function tearDown()
 {
     UserManager::clearInstance();
     ProjectManager::clearInstance();
     SystemEventManager::clearInstance();
     unset($GLOBALS['Language']);
 }
 public function tearDown()
 {
     UserManager::clearInstance();
     ProjectManager::clearInstance();
     SystemEventManager::clearInstance();
     parent::tearDown();
 }
 public function tearDown()
 {
     UserManager::clearInstance();
     unset($GLOBALS['Language']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['HTML']);
     parent::tearDown();
 }
 function tearDown()
 {
     UserManager::clearInstance();
     unset($GLOBALS['Language']);
     unset($GLOBALS['Response']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['sys_force_ssl']);
     unset($GLOBALS['sys_https_host']);
     unset($GLOBALS['group_id']);
     unset($_REQUEST['type_of_search']);
     ForgeConfig::restore();
     parent::tearDown();
 }
 public function tearDown()
 {
     $GLOBALS['Language'] = null;
     PermissionsManager::clearInstance();
     UserManager::clearInstance();
     if (isset($this->old_ftp_incoming_dir)) {
         $GLOBALS['ftp_incoming_dir'] = $this->old_ftp_incoming_dir;
     } else {
         unset($GLOBALS['ftp_incoming_dir']);
     }
     if (isset($this->old_ftp_frs_dir_prefix)) {
         $GLOBALS['ftp_frs_dir_prefix'] = $this->old_ftp_frs_dir_prefix;
     } else {
         unset($GLOBALS['ftp_frs_dir_prefix']);
     }
 }
 public function tearDown()
 {
     UserManager::clearInstance();
     parent::tearDown();
 }
 public function tearDown()
 {
     ForgeConfig::restore();
     UserManager::clearInstance();
     parent::tearDown();
 }
 public function tearDown()
 {
     UserManager::clearInstance();
     Tracker_FormElementFactory::clearInstance();
     parent::tearDown();
 }
Exemple #9
0
 public function tearDown()
 {
     WorkflowFactory::clearInstance();
     UserManager::clearInstance();
     unset($this->site_admin_user);
     unset($this->project_admin_user);
     unset($this->all_trackers_admin_user);
     unset($this->tracker1_admin_user);
     unset($this->tracker2_admin_user);
     unset($this->project_member_user);
     unset($this->registered_user);
     unset($this->anonymous);
     unset($this->registered);
     unset($this->project_member);
     unset($this->project_admin);
     unset($this->super_admin);
     unset($this->tracker_submitter);
     unset($this->tracker_assignee);
     unset($this->tracker_submitterassignee);
     unset($this->tracker_admin);
     parent::tearDown();
 }
Exemple #10
0
 private function addMembersToProject(Project $project, PFUser $user) {
     account_add_user_to_group($project->getId(), $user->getUnixName());
     \UserManager::clearInstance();
 }
 private function addMembersToProject(Project $project, PFUser $user)
 {
     $GLOBALS['sys_email_admin'] = 'noreply@localhost';
     account_add_user_to_group($project->getId(), $user->getUnixName());
     unset($GLOBALS['sys_email_admin']);
     UserManager::clearInstance();
     $this->user_manager = UserManager::instance();
 }
 public function tearDown()
 {
     $this->recurseDeleteInDir($this->tmp_dir);
     rmdir($this->tmp_dir);
     clearstatcache();
     UserManager::clearInstance();
     parent::tearDown();
 }
 public function tearDown()
 {
     try {
         $sys_data_dir_arg = escapeshellarg($GLOBALS['sys_data_dir']);
         $this->system_command->exec("sudo -u gitolite /usr/share/tuleap/plugins/git/bin/gl-delete-test-repository.sh {$sys_data_dir_arg}/gitolite/repositories/test_project");
     } catch (Exception $e) {
         //ignore errors
     }
     parent::tearDown();
     $GLOBALS['sys_data_dir'] = $this->old_sys_data_dir;
     ForgeConfig::restore();
     PermissionsManager::clearInstance();
     PluginManager::clearInstance();
     UserManager::clearInstance();
     unset($GLOBALS['tmp_dir']);
     //revert gitolite driver setAdminPath in its builder
     chdir($this->old_cwd);
 }
Exemple #14
0
    public function tearDown() {
        unset($_SERVER['HTTP_USER_AGENT']);
        if ($this->user_agent) {
            $_SERVER['HTTP_USER_AGENT'] = $this->user_agent;
        }

        UserManager::clearInstance();
        parent::tearDown();
    }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->artlink_info_123);
     unset($this->artlink_info_321);
     unset($this->artlink_info_666);
     unset($this->artlink_info_999);
     UserManager::clearInstance();
 }