当前位置: 首页>>代码示例>>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;未经允许,请勿转载。