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