當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PermissionsManager::clearInstance方法代碼示例

本文整理匯總了PHP中PermissionsManager::clearInstance方法的典型用法代碼示例。如果您正苦於以下問題:PHP PermissionsManager::clearInstance方法的具體用法?PHP PermissionsManager::clearInstance怎麽用?PHP PermissionsManager::clearInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PermissionsManager的用法示例。


在下文中一共展示了PermissionsManager::clearInstance方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 public function tearDown()
 {
     parent::tearDown();
     chdir($this->oldCwd);
     system('rm -Rf ' . $this->admin_dir);
     PermissionsManager::clearInstance();
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:7,代碼來源:Git_GitoliteDriver_PermissionsTest.php

示例2: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->item_id++;
     PermissionsManager::clearInstance();
     ProjectManager::clearInstance();
     Docman_ItemFactory::clearInstance($this->project->getID());
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:8,代碼來源:PermissionsItemManagerTest.php

示例3: 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']);
     }
 }
開發者ID:blestab,項目名稱:tuleap,代碼行數:16,代碼來源:FRSXMLImporterTest.php

示例4: tearDown

 public function tearDown()
 {
     PermissionsManager::clearInstance();
     parent::tearDown();
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:5,代碼來源:ConfigPermissionsSerializerTest.php

示例5: itCanReturnUgroupIdsFromAnItemAndItsPermissionTypes

 public function itCanReturnUgroupIdsFromAnItemAndItsPermissionTypes()
 {
     $object_id = 100;
     $expected = array(Ugroup::PROJECT_MEMBERS);
     $permissions_manager = mock('PermissionsManager');
     stub($permissions_manager)->getAuthorizedUgroupIds($object_id, self::PERMISSIONS_TYPE)->returns($expected);
     PermissionsManager::setInstance($permissions_manager);
     $result = $this->ugroup_literalizer->getUgroupIds($object_id, self::PERMISSIONS_TYPE);
     $this->assertEqual($expected, $result);
     PermissionsManager::clearInstance();
 }
開發者ID:nickl-,項目名稱:tuleap,代碼行數:11,代碼來源:UGroupLiteralizerTest.php

示例6: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($GLOBALS['sys_https_host']);
     PermissionsManager::clearInstance();
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:6,代碼來源:ProjectSerializerTest.php

示例7: tearDown

 public function tearDown()
 {
     parent::tearDown();
     chdir($this->cwd);
     unset($GLOBALS['sys_data_dir']);
     unset($GLOBALS['sys_https_host']);
     PermissionsManager::clearInstance();
 }
開發者ID:blestab,項目名稱:tuleap,代碼行數:8,代碼來源:Git_GitoliteTestCase.class.php

示例8: tearDown

 public function tearDown()
 {
     PermissionsManager::clearInstance();
     $this->xml_security->disableExternalLoadOfEntities();
     parent::tearDown();
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:6,代碼來源:WorkflowFactoryTest.php

示例9: 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);
 }
開發者ID:LouisRenWeiWei,項目名稱:tuleap,代碼行數:18,代碼來源:GitXmlImporterTest.php


注:本文中的PermissionsManager::clearInstance方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。