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


PHP TestCase::tearDown方法代码示例

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


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

示例1: tearDown

 protected function tearDown()
 {
     $qb = $this->connection->getQueryBuilder();
     $qb->delete('share');
     $qb->execute();
     return parent::tearDown();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:7,代码来源:RemoveOldSharesTest.php

示例2: tearDown

 protected function tearDown()
 {
     foreach ($this->tmpDirs as $dir) {
         \OC_Helper::rmdirr($dir);
     }
     parent::tearDown();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:7,代码来源:FilesTest.php

示例3: tearDown

 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
开发者ID:0x17de,项目名称:core,代码行数:7,代码来源:scanner.php

示例4: tearDown

 public function tearDown()
 {
     unset($this->backend);
     unset($this->ab);
     Utils\Properties::purgeIndexes($this->contactIds);
     parent::tearDown();
 }
开发者ID:gvde,项目名称:contacts-8,代码行数:7,代码来源:addressbookproviderTest.php

示例5: tearDown

 protected function tearDown()
 {
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     $this->logout();
     parent::tearDown();
 }
开发者ID:rosarion,项目名称:core,代码行数:7,代码来源:ajax_rename.php

示例6: tearDown

 public function tearDown()
 {
     $userManager = \OC::$server->getUserManager();
     $userManager->get($this->user)->delete();
     unset($_SERVER['HTTP_OC_CHUNKED']);
     parent::tearDown();
 }
开发者ID:quality123,项目名称:core,代码行数:7,代码来源:file.php

示例7: tearDown

 protected function tearDown()
 {
     if ($this->instance) {
         $this->instance->clear();
     }
     parent::tearDown();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:7,代码来源:TestCache.php

示例8: tearDown

 protected function tearDown()
 {
     OC::$server->getConfig()->setSystemValue('overwritewebroot', '');
     OC::$server->getConfig()->setSystemValue('trusted_proxies', array());
     OC::$server->getConfig()->setSystemValue('forwarded_for_headers', array());
     parent::tearDown();
 }
开发者ID:riso,项目名称:owncloud-core,代码行数:7,代码来源:request.php

示例9: tearDown

 protected function tearDown()
 {
     $query = OC_DB::prepare('DELETE FROM `*PREFIX*share` WHERE `item_type` = ?');
     $query->execute(array('test'));
     OC_Appconfig::setValue('core', 'shareapi_allow_resharing', $this->resharing);
     parent::tearDown();
 }
开发者ID:riso,项目名称:owncloud-core,代码行数:7,代码来源:share.php

示例10: tearDown

 protected function tearDown()
 {
     $conn = \OC_DB::getConnection();
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory_to_object`');
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory`');
     parent::tearDown();
 }
开发者ID:heldernl,项目名称:owncloud8-extended,代码行数:7,代码来源:tags.php

示例11: tearDown

 protected function tearDown()
 {
     $conn = \OC::$server->getDatabaseConnection();
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory_to_object`');
     $conn->executeQuery('DELETE FROM `*PREFIX*vcategory`');
     parent::tearDown();
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:7,代码来源:TagsTest.php

示例12: tearDown

 protected function tearDown()
 {
     $this->storage->getCache()->clear();
     $sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?';
     \OC_DB::executeAudited($sql, [$this->storage->getId()]);
     $this->clearMimeTypes();
     parent::tearDown();
 }
开发者ID:0x17de,项目名称:core,代码行数:8,代码来源:repairmimetypes.php

示例13: tearDown

 protected function tearDown()
 {
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     $this->logout();
     \OC_User::deleteUser($this->user);
     \OC_Hook::clear();
     parent::tearDown();
 }
开发者ID:ninjasilicon,项目名称:core,代码行数:8,代码来源:storage.php

示例14: tearDown

 protected function tearDown()
 {
     \OC_User::setIncognitoMode(false);
     // Set old user
     \OC_User::setUserId($this->oldUser);
     \OC_Util::setupFS($this->oldUser);
     parent::tearDown();
 }
开发者ID:GitHubUser4234,项目名称:core,代码行数:8,代码来源:PublicAuthTest.php

示例15: tearDown

 protected function tearDown()
 {
     \OC_Config::setValue('datadirectory', $this->datadir);
     \OC_User::setUserId($this->uid);
     \OC_Util::setupFS($this->uid);
     \OC\Files\Filesystem::mount($this->originalStorage, array(), '/');
     parent::tearDown();
 }
开发者ID:heldernl,项目名称:owncloud8-extended,代码行数:8,代码来源:etagtest.php


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