当前位置: 首页>>代码示例>>PHP>>正文


PHP ForgeConfig::store方法代码示例

本文整理汇总了PHP中ForgeConfig::store方法的典型用法代码示例。如果您正苦于以下问题:PHP ForgeConfig::store方法的具体用法?PHP ForgeConfig::store怎么用?PHP ForgeConfig::store使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ForgeConfig的用法示例。


在下文中一共展示了ForgeConfig::store方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     $this->factory = new TemplateRendererFactory();
     $this->plugin_templates_dir = dirname(__FILE__);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:TemplateRendererFactoryTest.php

示例2: setUp

 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');
 }
开发者ID:AdriandeCita,项目名称:tuleap,代码行数:35,代码来源:ProjectImportTest.php

示例3: setUp

 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);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:26,代码来源:MembershipManagerTest.php

示例4: setUp

 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()));
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:LDAPTest.php

示例5: setUp

 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';
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:TemporaryFileCreatorTest.php

示例6: itHasALogFileFromConfiguration

 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();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:SVN_Apache_SvnrootConfTest.php

示例7: setUp

 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);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:ProjectManagerTest.php

示例8: setUp

 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);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:CitationStripperTest.php

示例9: setUp

 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();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:MediawikiLanguageManagerTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     ForgeConfig::store();
     ForgeConfig::set('tuleap_dir', __DIR__ . '/../../../../../');
     $this->a_user = aUser()->withId(101)->withUserName('kshen')->withRealName('Kool Shen')->withEmail('kshen@hotmail.fr')->withLdapId('cb9867')->build();
     $this->another_user = aUser()->withId(102)->withUserName('jstar')->withRealName('Joeystarr <script>')->withEmail('jstar@caramail.com')->build();
     $this->none = aUser()->withId(100)->build();
     $this->collection = new UserXMLExportedCollection(new XML_RNGValidator(), new XML_SimpleXMLCDATAFactory());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:UserXMLExportedCollectionTest.php

示例11: setUp

 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');
 }
开发者ID:ansarbek,项目名称:tuleap,代码行数:10,代码来源:SVN_Apache_ModMysqlTest.php

示例12: setUp

 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');
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:BackendCVSTest.php

示例13: setUp

 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'];
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:BaseLanguageFactoryTest.php

示例14: setUp

 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);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:GenericUserFactoryTest.php

示例15: setUp

 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);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:SystemEventProcessor_RootTest.php


注:本文中的ForgeConfig::store方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。