當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。