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


PHP TestCase::tearDownAfterClass方法代碼示例

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


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

示例1: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER1);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER2);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER3);
     parent::tearDownAfterClass();
 }
開發者ID:0x17de,項目名稱:core,代碼行數:7,代碼來源:MigrationTest.php

示例2: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_VERSIONS_USER);
     \OC_User::deleteUser(self::TEST_VERSIONS_USER2);
     parent::tearDownAfterClass();
 }
開發者ID:nem0xff,項目名稱:core,代碼行數:7,代碼來源:versions.php

示例3: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $query = \OC_DB::prepare('DELETE FROM `*PREFIX*appconfig` WHERE `appid` = ?');
     $query->execute(array('testapp'));
     $query->execute(array('someapp'));
     $query->execute(array('123456'));
     $query->execute(array('anotherapp'));
     parent::tearDownAfterClass();
 }
開發者ID:adolfo2103,項目名稱:hcloudfilem,代碼行數:9,代碼來源:appconfig.php

示例4: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     \OC_Hook::clear();
     \OC_FileProxy::clearProxies();
     // Delete keys in /data/
     $view = new \OC\Files\View('/');
     $view->deleteAll('files_encryption');
     parent::tearDownAfterClass();
 }
開發者ID:yheric455042,項目名稱:owncloud82,代碼行數:9,代碼來源:testcase.php

示例5: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_TRASHBIN_USER1);
     \OC_Config::setValue('trashbin_retention_obligation', self::$rememberRetentionObligation);
     \OC_Config::setValue('trashbin_auto_expire', self::$rememberAutoExpire);
     \OC_Hook::clear();
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     parent::tearDownAfterClass();
 }
開發者ID:adolfo2103,項目名稱:hcloudfilem,代碼行數:10,代碼來源:trashbin.php

示例6: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_TRASHBIN_USER1);
     \OC::$server->getConfig()->setSystemValue('trashbin_retention_obligation', self::$rememberRetentionObligation);
     \OC_Hook::clear();
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     if (self::$trashBinStatus) {
         \OC::$server->getAppManager()->enableApp('files_trashbin');
     }
     parent::tearDownAfterClass();
 }
開發者ID:loulancn,項目名稱:core,代碼行數:12,代碼來源:trashbin.php

示例7: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_TRASHBIN_USER1);
     if (self::$encryptionStatus === true) {
         \OC_App::enable('files_encryption');
     }
     \OC_Config::setValue('trashbin_retention_obligation', self::$rememberRetentionObligation);
     \OC_Config::setValue('trashbin_auto_expire', self::$rememberAutoExpire);
     \OC_Hook::clear();
     parent::tearDownAfterClass();
 }
開發者ID:riso,項目名稱:owncloud-core,代碼行數:12,代碼來源:trashbin.php

示例8: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     $user = \OC::$server->getUserManager()->get(self::TEST_VERSIONS_USER);
     if ($user !== null) {
         $user->delete();
     }
     $user = \OC::$server->getUserManager()->get(self::TEST_VERSIONS_USER2);
     if ($user !== null) {
         $user->delete();
     }
     parent::tearDownAfterClass();
 }
開發者ID:sunblade,項目名稱:core,代碼行數:13,代碼來源:versions.php

示例9: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     $user = \OC::$server->getUserManager()->get(self::TEST_ENCRYPTION_MIGRATION_USER1);
     if ($user !== null) {
         $user->delete();
     }
     $user = \OC::$server->getUserManager()->get(self::TEST_ENCRYPTION_MIGRATION_USER2);
     if ($user !== null) {
         $user->delete();
     }
     $user = \OC::$server->getUserManager()->get(self::TEST_ENCRYPTION_MIGRATION_USER3);
     if ($user !== null) {
         $user->delete();
     }
     parent::tearDownAfterClass();
 }
開發者ID:gvde,項目名稱:core,代碼行數:16,代碼來源:MigrationTest.php

示例10: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup users
     $user = \OC::$server->getUserManager()->get(self::TEST_FILES_SHARING_API_USER1);
     if ($user !== null) {
         $user->delete();
     }
     $user = \OC::$server->getUserManager()->get(self::TEST_FILES_SHARING_API_USER2);
     if ($user !== null) {
         $user->delete();
     }
     \OC_Util::tearDownFS();
     \OC_User::setUserId('');
     Filesystem::tearDown();
     // reset backend
     \OC_User::clearBackends();
     \OC_User::useBackend('database');
     \OC_Group::clearBackends();
     \OC_Group::useBackend(new \OC_Group_Database());
     parent::tearDownAfterClass();
 }
開發者ID:GitHubUser4234,項目名稱:core,代碼行數:21,代碼來源:TestCase.php

示例11: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     self::dropTestTable();
     parent::tearDownAfterClass();
 }
開發者ID:rchicoli,項目名稱:owncloud-core,代碼行數:5,代碼來源:ConnectionTest.php

示例12: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     @unlink(OC::$SERVERROOT . '/tests/data/testimage2.png');
     @unlink(OC::$SERVERROOT . '/tests/data/testimage2.jpg');
     parent::tearDownAfterClass();
 }
開發者ID:heldernl,項目名稱:owncloud8-extended,代碼行數:6,代碼來源:image.php

示例13: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup users
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER1);
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER2);
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER3);
     // delete group
     \OC_Group::deleteGroup(self::TEST_FILES_SHARING_API_GROUP1);
     \OC_Util::tearDownFS();
     \OC_User::setUserId('');
     Filesystem::tearDown();
     // reset backend
     \OC_User::clearBackends();
     \OC_User::useBackend('database');
     \OC_Group::clearBackends();
     \OC_Group::useBackend(new \OC_Group_Database());
     parent::tearDownAfterClass();
 }
開發者ID:evanjt,項目名稱:core,代碼行數:18,代碼來源:testcase.php

示例14: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup users
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER1);
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER2);
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER3);
     // delete group
     \OC_Group::deleteGroup(self::TEST_FILES_SHARING_API_GROUP1);
     // reset app files_encryption
     if (self::$stateFilesEncryption) {
         \OC_App::enable('files_encryption');
     } else {
         \OC_App::disable('files_encryption');
     }
     \OC_Util::tearDownFS();
     \OC_User::setUserId('');
     Filesystem::tearDown();
     parent::tearDownAfterClass();
 }
開發者ID:heldernl,項目名稱:owncloud8-extended,代碼行數:19,代碼來源:testcase.php


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