public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     $this->factory = new TemplateRendererFactory();
     $this->plugin_templates_dir = dirname(__FILE__);
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     PluginManager::instance()->invalidateCache();
     PluginFactory::clearInstance();
     $this->old_globals = $GLOBALS;
     $GLOBALS['feedback'] = '';
     $GLOBALS['svn_prefix'] = '/tmp';
     $GLOBALS['cvs_prefix'] = '/tmp';
     $GLOBALS['grpdir_prefix'] = '/tmp';
     $GLOBALS['ftp_frs_dir_prefix'] = '/tmp';
     $GLOBALS['ftp_anon_dir_prefix'] = '/tmp';
     $GLOBALS['sys_default_domain'] = '';
     $GLOBALS['sys_cookie_prefix'] = '';
     $GLOBALS['sys_force_ssl'] = 0;
     ForgeConfig::store();
     $this->old_sys_pluginsroot = $GLOBALS['sys_pluginsroot'];
     $this->old_sys_custompluginsroot = $GLOBALS['sys_custompluginsroot'];
     $GLOBALS['sys_pluginsroot'] = dirname(__FILE__) . '/../../plugins/';
     $GLOBALS['sys_custompluginsroot'] = "/tmp";
     ForgeConfig::set('tuleap_dir', __DIR__ . '/../../');
     ForgeConfig::set('codendi_log', "/tmp/");
     /**
      * HACK
      */
     require_once dirname(__FILE__) . '/../../plugins/fusionforge_compat/include/fusionforge_compatPlugin.class.php';
     $ff_plugin = new fusionforge_compatPlugin();
     $ff_plugin->loaded();
     PluginManager::instance()->installAndActivate('mediawiki');
     $plugin = PluginManager::instance()->getPluginByName('mediawiki');
     EventManager::instance()->addListener(Event::IMPORT_XML_PROJECT, $plugin, 'importXmlProject', false);
     EventManager::instance()->addListener('register_project_creation', $plugin, 'register_project_creation', false);
     EventManager::instance()->addListener(Event::SERVICES_ALLOWED_FOR_PROJECT, $plugin, 'services_allowed_for_project', false);
     putenv('TULEAP_LOCAL_INC=' . dirname(__FILE__) . '/_fixtures/local.inc');
 }
Пример #3
0
 public function setUp()
 {
     ForgeConfig::store();
     ForgeConfig::set('codendi_log', '/tmp/');
     $this->user = stub('PFUser')->getLdapId()->returns('whatever');
     $this->driver = mock('Git_Driver_Gerrit');
     $this->driver_factory = stub('Git_Driver_Gerrit_GerritDriverFactory')->getDriver()->returns($this->driver);
     $this->user_finder = mock('Git_Driver_Gerrit_UserFinder');
     $this->remote_server_factory = mock('Git_RemoteServer_GerritServerFactory');
     $this->remote_server = stub('Git_RemoteServer_GerritServer')->getId()->returns(25);
     $this->gerrit_user = mock('Git_Driver_Gerrit_User');
     $this->gerrit_user_manager = mock('Git_Driver_Gerrit_UserAccountManager');
     $this->project = mock('Project');
     $this->u_group = mock('ProjectUGroup');
     $this->u_group2 = mock('ProjectUGroup');
     $this->u_group3 = mock('ProjectUGroup');
     $this->git_repository = mock('GitRepository');
     $this->project_manager = mock('ProjectManager');
     stub($this->u_group)->getProject()->returns($this->project);
     stub($this->u_group2)->getProject()->returns($this->project);
     stub($this->u_group3)->getProject()->returns($this->project);
     stub($this->project_manager)->getChildProjects()->returns(array());
     stub($this->remote_server_factory)->getServer()->returns($this->remote_server);
     stub($this->project)->getUnixName()->returns($this->project_name);
     stub($this->gerrit_user_manager)->getGerritUser($this->user)->returns($this->gerrit_user);
 }
Пример #4
0
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('sys_logger_level', 'debug');
     $this->ldap = partial_mock('LDAP', array('search'), array($this->ldap_params, mock('TruncateLevelLogger'), new LdapQueryEscaper()));
 }
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('tmp_dir', $this->getTempDir());
     $this->creator = new Tracker_XML_Updater_TemporaryFileCreator();
     $this->initial = dirname(__FILE__) . '/_fixtures/toto.txt';
 }
 public function itHasALogFileFromConfiguration()
 {
     ForgeConfig::store();
     ForgeConfig::set(SVN_Apache_SvnrootConf::CONFIG_SVN_LOG_PATH, '${APACHE_LOG_DIR}/tuleap_svn.log');
     $conf = $this->GivenAFullApacheConfWithModPerl();
     $this->assertPattern('%\\${APACHE_LOG_DIR}/tuleap_svn\\.log%', $conf);
     ForgeConfig::restore();
 }
Пример #7
0
 function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     $this->user_manager = mock('UserManager');
     $this->project_manager_test_version = new ProjectManagerTestVersion();
     stub($this->project_manager_test_version)->_getUserManager()->returns($this->user_manager);
 }
Пример #8
0
 public function setUp()
 {
     parent::setUp();
     $this->fixtures_dir = dirname(__FILE__) . '/_fixtures';
     $this->citation_stripper = new Tracker_Artifact_MailGateway_CitationStripper();
     ForgeConfig::store();
     ForgeConfig::set('sys_strip_outlook', 1);
 }
 public function setUp()
 {
     parent::setUp();
     $this->dao = mock('MediawikiLanguageDao');
     $this->language_manager = new MediawikiLanguageManager($this->dao);
     $this->project = stub('Project')->getID()->returns(123);
     ForgeConfig::store();
 }
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('tuleap_dir', __DIR__ . '/../../../../../');
     $this->a_user = aUser()->withId(101)->withUserName('kshen')->withRealName('Kool Shen')->withEmail('*****@*****.**')->withLdapId('cb9867')->build();
     $this->another_user = aUser()->withId(102)->withUserName('jstar')->withRealName('Joeystarr <script>')->withEmail('*****@*****.**')->build();
     $this->none = aUser()->withId(100)->build();
     $this->collection = new UserXMLExportedCollection(new XML_RNGValidator(), new XML_SimpleXMLCDATAFactory());
 }
Пример #11
0
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('sys_dbhost', 'db_server');
     ForgeConfig::set('sys_dbname', 'db');
     ForgeConfig::set('svn_prefix', '/svnroot');
     ForgeConfig::set('sys_dbauth_user', 'dbauth_user');
     ForgeConfig::set('sys_dbauth_passwd', 'dbauth_passwd');
 }
Пример #12
0
 function setUp()
 {
     $GLOBALS['cvs_prefix'] = dirname(__FILE__) . '/_fixtures/cvsroot';
     $GLOBALS['cvslock_prefix'] = dirname(__FILE__) . '/_fixtures/var/lock/cvs';
     $GLOBALS['tmp_dir'] = dirname(__FILE__) . '/_fixtures/var/tmp';
     $GLOBALS['cvs_cmd'] = "/usr/bin/cvs";
     $GLOBALS['cvs_root_allow_file'] = dirname(__FILE__) . '/_fixtures/etc/cvs_root_allow';
     ForgeConfig::store();
     ForgeConfig::set('sys_project_backup_path', dirname(__FILE__) . '/_fixtures/var/tmp');
     mkdir($GLOBALS['cvs_prefix'] . '/' . 'toto');
 }
Пример #13
0
 function setUp()
 {
     ForgeConfig::store();
     ForgeConfig::loadFromFile(dirname(__FILE__) . '/_fixtures/local.inc');
     $this->supportedLanguages = ForgeConfig::get('sys_supported_languages');
     $this->oldLocale = setlocale(LC_ALL, "0");
     setlocale(LC_ALL, 'fr_FR');
     $GLOBALS['tmp_dir'] = dirname(__FILE__) . '/_fixtures/var/tmp';
     $GLOBALS['sys_custom_incdir'] = $GLOBALS['tmp_dir'];
     $GLOBALS['sys_incdir'] = $GLOBALS['tmp_dir'];
 }
Пример #14
0
 public function setUp()
 {
     parent::setUp();
     $this->user_manager = mock('UserManager');
     $this->project_manager = mock('ProjectManager');
     $this->project = mock('Project');
     stub($this->project_manager)->getProject()->returns($this->project);
     $dao = mock('GenericUserDao');
     ForgeConfig::store();
     ForgeConfig::set(GenericUserFactory::CONFIG_KEY_SUFFIX, '');
     $this->factory = new GenericUserFactory($this->user_manager, $this->project_manager, $dao);
 }
 public function setUp()
 {
     parent::setUp();
     $this->system_event_manager = mock('SystemEventManager');
     $this->system_event_dao = mock('SystemEventDao');
     $this->logger = mock('Logger');
     $this->site_cache = mock('SiteCache');
     $this->processor = partial_mock('SystemEventProcessor_Root', array('launchAs'), array(new SystemEventProcessRootDefaultQueue(), $this->system_event_manager, $this->system_event_dao, $this->logger, mock('BackendAliases'), mock('BackendCVS'), mock('BackendSVN'), mock('BackendSystem'), $this->site_cache));
     ForgeConfig::store();
     ForgeConfig::set('codendi_dir', '/usr/share/codendi');
     ForgeConfig::set('sys_http_user', $this->sys_http_user);
 }
Пример #16
0
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     $this->cache_dir = trim(`mktemp -d -p /var/tmp cache_dir_XXXXXX`);
     ForgeConfig::set('codendi_cache_dir', $this->cache_dir);
     $user = aUser()->withId(101)->build();
     $dao = mock('Tracker_Artifact_Attachment_TemporaryFileManagerDao');
     stub($dao)->create()->returns(1);
     $file_info_factory = mock('Tracker_FileInfoFactory');
     $this->file_manager = new Tracker_Artifact_Attachment_TemporaryFileManager($user, $dao, $file_info_factory);
 }
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('codendi_dir', AGILEDASHBOARD_BASE_DIR . '/../../..');
     $milestone_controller_factory = mock('Planning_MilestoneControllerFactory');
     $this->planning_controller = mock('Planning_Controller');
     $this->router = TestHelper::getPartialMock('AgileDashboardRouter', array('renderAction', 'executeAction', 'buildController', 'buildPlanningController', 'getArtifactFactory'));
     $this->router->__construct(mock('Plugin'), mock('Planning_MilestoneFactory'), mock('PlanningFactory'), mock('Planning_ShortAccessFactory'), $milestone_controller_factory, mock('ProjectManager'), mock('AgileDashboard_XMLFullStructureExporter'), mock('AgileDashboard_KanbanManager'), mock('AgileDashboard_ConfigurationManager'), mock('AgileDashboard_KanbanFactory'), mock('PlanningPermissionsManager'), mock('AgileDashboard_HierarchyChecker'));
     stub($this->router)->buildPlanningController()->returns($this->planning_controller);
     stub($milestone_controller_factory)->getMilestoneController()->returns(mock('Planning_MilestoneController'));
 }
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('codendi_dir', AGILEDASHBOARD_BASE_DIR . '/../../..');
     $this->planning_id = '321';
     $this->user = aUser()->withId(12)->build();
     $this->request = aRequest()->with('planning_id', $this->planning_id)->withUser($this->user)->build();
     $this->milestone_factory = mock('Planning_MilestoneFactory');
     $this->current_milestone_artifact_id = 444;
     $milestone = aMilestone()->withArtifact(anArtifact()->withId($this->current_milestone_artifact_id)->build())->build();
     stub($this->milestone_factory)->getLastMilestoneCreated($this->user, $this->planning_id)->returns($milestone);
 }
 public function setUp()
 {
     ForgeConfig::store();
     $this->event_manager = mock('EventManager');
     $this->event_manager_with_plugin_answer = new SVN_Apache_Auth_FactoryTestEventManager();
     $this->project_manager = mock('ProjectManager');
     $this->token_manager = mock('SVN_TokenUsageManager');
     $this->factory = new SVN_Apache_Auth_Factory($this->project_manager, $this->event_manager, $this->token_manager);
     $this->factory_with_plugin_answer = new SVN_Apache_Auth_Factory($this->project_manager, $this->event_manager_with_plugin_answer, $this->token_manager);
     $this->project = mock('Project');
     $this->project_info = array();
     $this->mod_from_plugin = new SVN_Apache_ModFromPlugin($this->project_info);
 }
Пример #20
0
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('codendi_log', dirname(__FILE__));
     if (!self::$defect_tracker_converted && $this->thisTestIsNotUnderDevelopment()) {
         $this->convertTrackers();
     }
     $this->form_element_factory = Tracker_FormElementFactory::instance();
     $this->tracker_factory = TrackerFactory::instance();
     $this->defect_tracker = $this->tracker_factory->getTrackerById(self::$defect_tracker_id);
     $this->task_tracker = $this->tracker_factory->getTrackerById(self::$task_tracker_id);
 }
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('codendi_dir', AGILEDASHBOARD_BASE_DIR . '/../../..');
     $this->user_manager = mock('UserManager');
     $this->request = mock('Codendi_Request');
     $this->planning_factory = mock('PlanningFactory');
     $this->kanban_manager = mock('AgileDashboard_KanbanManager');
     $this->config_manager = mock('AgileDashboard_ConfigurationManager');
     $this->tracker_factory = mock('TrackerFactory');
     $this->kanban_factory = mock('AgileDashboard_KanbanFactory');
     UserManager::setInstance($this->user_manager);
 }
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('codendi_dir', AGILEDASHBOARD_BASE_DIR . '/../../..');
     $planning_id = "99876387";
     $aid = -1;
     $this->planning_tracker_id = 66;
     $this->request = aRequest()->withUri("/plugins/agiledashboard/?group_id=104&action=show&planning_id={$planning_id}&aid={$aid}")->build();
     $this->planning = aPlanning()->withId($planning_id)->withPlanningTrackerId($this->planning_tracker_id)->build();
     $planning_factory = mock('PlanningFactory');
     stub($planning_factory)->getPlanning($planning_id)->returns($this->planning);
     $this->controller = new Planning_ArtifactCreationController($planning_factory, $this->request);
 }
Пример #23
0
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('sys_http_user', 'codendiadm');
     $this->plugin = stub('Plugin')->getServiceShortname()->returns('docman');
     $this->retriever = mock('Docman_SystemCheckProjectRetriever');
     $logger = mock('BackendLogger');
     $backend = BackendSystem::instance();
     $this->root_dir_path = dirname(__FILE__) . '/_fixtures/';
     $plugin_info = stub('DocmanPluginInfo')->getPropertyValueForName('docman_root')->returns($this->root_dir_path);
     stub($this->plugin)->getPluginInfo()->returns($plugin_info);
     $this->system_check = new Docman_SystemCheck($this->plugin, $this->retriever, $backend, $logger);
 }
Пример #24
0
 function setUp()
 {
     $GLOBALS['homedir_prefix'] = dirname(__FILE__) . '/_fixtures/home/users';
     $GLOBALS['grpdir_prefix'] = dirname(__FILE__) . '/_fixtures/home/groups';
     $GLOBALS['codendi_shell_skel'] = dirname(__FILE__) . '/_fixtures/etc/skel_codendi';
     $GLOBALS['tmp_dir'] = dirname(__FILE__) . '/_fixtures/var/tmp';
     $GLOBALS['ftp_frs_dir_prefix'] = dirname(__FILE__) . '/_fixtures/var/lib/codendi/ftp/codendi';
     $GLOBALS['ftp_anon_dir_prefix'] = dirname(__FILE__) . '/_fixtures/var/lib/codendi/ftp/pub';
     $GLOBALS['sys_file_deletion_delay'] = 5;
     $GLOBALS['sys_custom_incdir'] = $GLOBALS['tmp_dir'];
     $GLOBALS['sys_incdir'] = $GLOBALS['tmp_dir'];
     $GLOBALS['codendi_log'] = $GLOBALS['tmp_dir'];
     ForgeConfig::store();
     ForgeConfig::set('sys_project_backup_path', dirname(__FILE__) . '/_fixtures/var/tmp');
 }
Пример #25
0
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     $this->cache_dir = trim(`mktemp -d -p /var/tmp cache_dir_XXXXXX`);
     ForgeConfig::set('codendi_cache_dir', $this->cache_dir);
     $this->user = aUser()->withId(101)->build();
     $user_manager = stub('UserManager')->getUserById(101)->returns($this->user);
     $this->dao = mock('Tracker_Artifact_Attachment_TemporaryFileManagerDao');
     stub($this->dao)->create()->returns(1);
     $file_info_factory = mock('Tracker_FileInfoFactory');
     $system = new System_Command();
     $retention_delay = 3;
     $this->file_manager = new Tracker_Artifact_Attachment_TemporaryFileManager($user_manager, $this->dao, $file_info_factory, $system, $retention_delay);
 }
 public function setUp()
 {
     parent::setUp();
     $this->dao = mock('ArtifactXMLExporterDao');
     $this->dom = new DOMDocument("1.0", "UTF8");
     $this->archive = mock('ZipArchive');
     $node_helper = new ArtifactXMLNodeHelper($this->dom);
     $attachment_exporter = new ArtifactAttachmentXMLZipper($node_helper, $this->dao, $this->archive, false);
     $this->logger = mock('Logger');
     $this->exporter = new ArtifactXMLExporter($this->dao, $attachment_exporter, $node_helper, $this->logger);
     $this->fixtures_dir = dirname(__FILE__) . '/_fixtures/';
     $this->expected_open_date = $this->toExpectedDate($this->open_date);
     ForgeConfig::store();
     ForgeConfig::set('sys_data_dir', dirname($this->fixtures_dir));
 }
Пример #27
0
 public function setUp()
 {
     parent::setUp();
     $GLOBALS['feedback'] = '';
     $GLOBALS['svn_prefix'] = '/tmp';
     $GLOBALS['cvs_prefix'] = '/tmp';
     $GLOBALS['grpdir_prefix'] = '/tmp';
     $GLOBALS['ftp_frs_dir_prefix'] = '/tmp';
     $GLOBALS['ftp_anon_dir_prefix'] = '/tmp';
     $GLOBALS['sys_default_domain'] = '';
     $GLOBALS['sys_cookie_prefix'] = '';
     $GLOBALS['sys_force_ssl'] = 0;
     ForgeConfig::store();
     ForgeConfig::set('tuleap_dir', __DIR__ . '/../../');
 }
Пример #28
0
 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('codendi_dir', AGILEDASHBOARD_BASE_DIR . '/../../..');
     $this->plugin_path = '/plugin/path';
     $this->product = aMilestone()->withArtifact(aMockArtifact()->withId(1)->withTitle('Product X')->build())->build();
     $this->release = aMilestone()->withArtifact(aMockArtifact()->withId(2)->withTitle('Release 1.0')->build())->build();
     $this->sprint = aMilestone()->withArtifact(aMockArtifact()->withId(3)->withTitle('Sprint 1')->build())->build();
     $this->nomilestone = stub('Planning_NoMilestone')->getPlanning()->returns(mock('Planning'));
     $this->milestone_factory = mock('Planning_MilestoneFactory');
     $this->project_manager = mock('ProjectManager');
     $this->current_user = aUser()->build();
     $this->request = aRequest()->withUser($this->current_user)->with('group_id', 102)->build();
     $this->project = mock('Project');
     stub($this->project_manager)->getProject(102)->returns($this->project);
 }
Пример #29
0
 public function setUp()
 {
     $this->old_cwd = getcwd();
     $this->system_command = new System_Command();
     parent::setUp();
     $this->old_sys_data_dir = isset($GLOBALS['sys_data_dir']) ? $GLOBALS['sys_data_dir'] : null;
     $GLOBALS['sys_data_dir'] = parent::getTmpDir();
     $GLOBALS['tmp_dir'] = dirname(__FILE__) . '/_fixtures/tmp';
     mkdir("{$GLOBALS['sys_data_dir']}/gitolite/admin/", 0777, true);
     mkdir("{$GLOBALS['sys_data_dir']}/gitolite/repositories/test_project", 0777, true);
     $sys_data_dir_arg = escapeshellarg($GLOBALS['sys_data_dir']);
     $this->system_command->exec("chmod -R 777 {$sys_data_dir_arg}/gitolite/repositories");
     ForgeConfig::store();
     $this->git_dao = new MyMockGitDao();
     $plugin_dao = mock('PluginDao');
     ProjectManager::clearInstance();
     $this->project_manager = ProjectManager::instance();
     $this->logger = mock('Logger');
     $this->git_plugin = new GitPlugin(1);
     $this->git_factory = new GitRepositoryFactory($this->git_dao, $this->project_manager);
     $this->git_systemeventmanager = mock('Git_SystemEventManager');
     $this->mirror_updater = mock('GitRepositoryMirrorUpdater');
     $this->mirror_data_mapper = mock('Git_Mirror_MirrorDataMapper');
     $this->git_manager = new GitRepositoryManager($this->git_factory, $this->git_systemeventmanager, $this->git_dao, parent::getTmpDir(), $this->mirror_updater, $this->mirror_data_mapper);
     $restricted_plugin_dao = mock('RestrictedPluginDao');
     $plugin_factory = new PluginFactory($plugin_dao, new PluginResourceRestrictor($restricted_plugin_dao));
     $plugin_manager = new PluginManager($plugin_factory, EventManager::instance(), new SiteCache($this->logger), new ForgeUpgradeConfig(new System_Command()));
     PluginManager::setInstance($plugin_manager);
     $this->ugroup_dao = mock('UGroupDao');
     $this->ugroup_manager = new UGroupManager($this->ugroup_dao, mock('EventManager'));
     $this->permission_dao = mock('PermissionsDAO');
     $permissions_manager = new PermissionsManager($this->permission_dao);
     $git_mirror_dao = mock('Git_Mirror_MirrorDao');
     $git_gitolite_driver = new Git_GitoliteDriver($this->logger, $this->git_systemeventmanager, mock('Git_GitRepositoryUrlManager'), $this->git_dao, $git_mirror_dao, $this->git_plugin, null, null, mock('Git_Gitolite_ConfigPermissionsSerializer'), null, null, mock('Git_Mirror_MirrorDataMapper'));
     $gitolite = new Git_Backend_Gitolite($git_gitolite_driver, $this->logger);
     $this->importer = new GitXmlImporter($this->logger, $this->git_manager, $this->git_factory, $gitolite, $this->git_systemeventmanager, $permissions_manager, $this->ugroup_manager);
     $this->temp_project_dir = parent::getTmpDir() . DIRECTORY_SEPARATOR . 'test_project';
     $userManager = mock('UserManager');
     stub($userManager)->getUserById()->returns(new PFUser());
     UserManager::setInstance($userManager);
     stub($this->permission_dao)->clearPermission()->returns(true);
     stub($this->permission_dao)->addPermission()->returns(true);
     stub($this->git_dao)->getProjectRepositoryList()->returns(array());
     copy(__DIR__ . '/_fixtures/stable_repo_one_commit.bundle', parent::getTmpDir() . DIRECTORY_SEPARATOR . 'stable.bundle');
     $this->project = $this->project_manager->getProjectFromDbRow(array('group_id' => 123, 'unix_group_name' => 'test_project', 'access' => Project::ACCESS_PUBLIC));
 }
Пример #30
0
 function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set(ForgeAccess::CONFIG, ForgeAccess::ANONYMOUS);
     $GLOBALS['Response'] = mock('Layout');
     $GLOBALS['sys_default_domain'] = 'default';
     $GLOBALS['sys_https_host'] = 'default';
     $GLOBALS['sys_force_ssl'] = 0;
     unset($GLOBALS['group_id']);
     $this->fixtures = dirname(__FILE__) . '/_fixtures';
     $GLOBALS['Language'] = new MockBaseLanguage($this);
     $user = mock('PFUser');
     $this->user_manager = mock('UserManager');
     stub($this->user_manager)->getCurrentUser()->returns($user);
     UserManager::setInstance($this->user_manager);
 }