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


PHP TestCase::tearDown方法代码示例

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


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

示例1: tearDown

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

示例2: tearDown

 protected function tearDown()
 {
     $query = \OCP\DB::prepare('DELETE FROM `*PREFIX*share_external`');
     $query->execute();
     $this->restoreHttpHelper();
     parent::tearDown();
 }
开发者ID:hyb148,项目名称:core,代码行数:7,代码来源:server2server.php

示例3: tearDown

 protected function tearDown()
 {
     \OC_Hook::clear('OC_Filesystem', 'post_write');
     \OC_Hook::clear('OC_Filesystem', 'post_delete');
     \OC_Hook::clear('OC_Filesystem', 'post_rename');
     parent::tearDown();
 }
开发者ID:samj1912,项目名称:repo,代码行数:7,代码来源:etagpropagation.php

示例4: tearDown

 protected function tearDown()
 {
     if ($this->view) {
         $this->view->deleteAll($this->folder);
     }
     self::$tempStorage = null;
     parent::tearDown();
 }
开发者ID:evanjt,项目名称:core,代码行数:8,代码来源:unsharechildren.php

示例5: tearDown

 protected function tearDown()
 {
     \OC_Hook::clear('OC_Filesystem', 'post_write');
     \OC_Hook::clear('OC_Filesystem', 'post_delete');
     \OC_Hook::clear('OC_Filesystem', 'post_rename');
     \OC_Hook::clear('OCP\\Share', 'post_update_permissions');
     parent::tearDown();
 }
开发者ID:TylerTemp,项目名称:core,代码行数:8,代码来源:etagpropagation.php

示例6: tearDown

 protected function tearDown()
 {
     if ($this->view) {
         $this->view->unlink($this->filename);
         $this->view->deleteAll($this->folder);
     }
     parent::tearDown();
 }
开发者ID:kenwi,项目名称:core,代码行数:8,代码来源:backend.php

示例7: tearDown

 protected function tearDown()
 {
     if ($this->view instanceof \OC\Files\View) {
         $this->view->unlink($this->filename);
         $this->view->deleteAll($this->folder);
     }
     self::$tempStorage = null;
     parent::tearDown();
 }
开发者ID:evanjt,项目名称:core,代码行数:9,代码来源:api.php

示例8: tearDown

 function tearDown()
 {
     $this->sharedCache->clear();
     self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
     $fileinfo = $this->view->getFileInfo('container/shareddir');
     \OCP\Share::unshare('folder', $fileinfo['fileid'], \OCP\Share::SHARE_TYPE_USER, self::TEST_FILES_SHARING_API_USER2);
     $fileinfo = $this->view->getFileInfo('container/shared single file.txt');
     \OCP\Share::unshare('file', $fileinfo['fileid'], \OCP\Share::SHARE_TYPE_USER, self::TEST_FILES_SHARING_API_USER2);
     $this->view->deleteAll('container');
     $this->ownerCache->clear();
     parent::tearDown();
 }
开发者ID:Romua1d,项目名称:core,代码行数:12,代码来源:cache.php

示例9: tearDown

 public function tearDown()
 {
     \OC::$server->getUserManager()->removeBackend($this->userBackend);
     parent::tearDown();
 }
开发者ID:enoch85,项目名称:owncloud-testserver,代码行数:5,代码来源:locking.php

示例10: tearDown

 protected function tearDown()
 {
     if ($this->sharedCache) {
         $this->sharedCache->clear();
     }
     self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
     $shares = $this->shareManager->getSharesBy(self::TEST_FILES_SHARING_API_USER1, \OCP\Share::SHARE_TYPE_USER);
     foreach ($shares as $share) {
         $this->shareManager->deleteShare($share);
     }
     $this->view->deleteAll('container');
     $this->ownerCache->clear();
     parent::tearDown();
 }
开发者ID:stweil,项目名称:owncloud-core,代码行数:14,代码来源:cache.php

示例11: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->cleanDB();
 }
开发者ID:ZverAleksey,项目名称:core,代码行数:5,代码来源:migrationtest.php

示例12: tearDown

 protected function tearDown()
 {
     $this->groupPropagationManager->tearDown();
     $this->recipientGroup->removeUser($this->recipientUser);
     parent::tearDown();
 }
开发者ID:enoch85,项目名称:owncloud-testserver,代码行数:6,代码来源:grouppropagationmanager.php


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