當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ezpDatabaseTestCase::tearDown方法代碼示例

本文整理匯總了PHP中ezpDatabaseTestCase::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP ezpDatabaseTestCase::tearDown方法的具體用法?PHP ezpDatabaseTestCase::tearDown怎麽用?PHP ezpDatabaseTestCase::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ezpDatabaseTestCase的用法示例。


在下文中一共展示了ezpDatabaseTestCase::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

    public function tearDown()
    {
        eZContentLanguage::removeLanguage( 'nno-NO' );
        eZContentLanguage::removeLanguage( 'dan-DK' );

        parent::tearDown();
    }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:7,代碼來源:ezcontentlanguage_regression.php

示例2: tearDown

 public function tearDown()
 {
     $this->userObject = null;
     $this->userEmail = null;
     $this->userLogin = null;
     parent::tearDown();
 }
開發者ID:nottavi,項目名稱:ezpublish,代碼行數:7,代碼來源:ezusertype_regression.php

示例3: tearDown

 public function tearDown()
 {
     eZPolicyLimitation::removeByID($this->policy->attribute('id'));
     eZPolicy::removeByID($this->policy->attribute('id'));
     $this->policy = null;
     parent::tearDown();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:7,代碼來源:ezsubtreenotificationrule_regression.php

示例4: tearDown

 public function tearDown()
 {
     $this->testURI = null;
     $this->postParams = array();
     ezpINIHelper::restoreINISettings();
     parent::tearDown();
 }
開發者ID:netbliss,項目名稱:ezfind,代碼行數:7,代碼來源:ezsolrbase_regression.php

示例5: tearDown

    /**
     * Called by PHPUnit after each test.
     */
    public function tearDown()
    {
        // Log in as whoever was logged in
        eZUser::setCurrentlyLoggedInUser( $this->currentUser, $this->currentUser->attribute( 'id' ) );

        parent::tearDown();
    }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:10,代碼來源:ezrss_export_test.php

示例6: tearDown

 /**
  * Test case teardown
  * Restores the INI settings changed in setUp
  */
 public function tearDown()
 {
     eZDB::instance()->query('DELETE FROM ezurlwildcard');
     eZURLWildcard::expireCache();
     clearstatcache();
     sleep(1);
     parent::tearDown();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:12,代碼來源:ezurlwildcard_test.php

示例7: tearDown

 /**
  * Test case teardown
  */
 public function tearDown()
 {
     eZURLWildcard::removeByIDs(array($this->wildcard->attribute('id')));
     eZURLWildcard::expireCache();
     clearstatcache();
     sleep(1);
     parent::tearDown();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:11,代碼來源:ezurlwildcard_regression.php

示例8: tearDown

 /**
  * tearDown():
  * - deletes the admin PAEX object if it still exists
  **/
 public function tearDown()
 {
     parent::tearDown();
     // remove the PAEX object if it hasn't been removed by the test
     if (eZPaEx::fetch($this->paex->attribute('contentobject_id'))) {
         eZPaEx::removePaex($this->paex->attribute('contentobject_id'));
     }
 }
開發者ID:netbliss,項目名稱:ezmbpaex,代碼行數:12,代碼來源:ezpaex_test.php

示例9: tearDown

 /**
  * Test case teardown
  * Restores the INI settings changed in setUp
  **/
 public function tearDown()
 {
     $ini = eZINI::instance('site.ini');
     $ini->setVariable('DatabaseSettings', 'DatabaseImplementation', $this->iniBackup['implementationBackup']);
     $ini->setVariable('DatabaseSettings', 'Server', $this->iniBackup['serverBackup']);
     $ini->setVariable('DatabaseSettings', 'Database', $this->iniBackup['databaseBackup']);
     parent::tearDown();
 }
開發者ID:rmiguel,項目名稱:ezpublish,代碼行數:12,代碼來源:ezurlwildcard_test.php

示例10: tearDown

 public function tearDown()
 {
     if ($this->object !== null) {
         $this->destroyObject();
     }
     eZContentClassOperations::remove($this->class->id);
     parent::tearDown();
 }
開發者ID:nlenardou,項目名稱:ezpublish,代碼行數:8,代碼來源:ezdatatype_abstract_test.php

示例11: tearDown

 public function tearDown()
 {
     if ($this->language instanceof eZContentLanguage) {
         if (!$this->language->removeThis()) {
             trigger_error('Could not remove language nor-NO, probably still existing content / class in this language!');
         }
     }
     parent::tearDown();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:9,代碼來源:ezxmltext_regression.php

示例12: tearDown

 public function tearDown()
 {
     $this->fileAttribute = null;
     $this->imageObject->remove();
     $this->imageObject = null;
     eZContentClassOperations::remove($this->imageClass->id);
     $this->imageClass = null;
     parent::tearDown();
 }
開發者ID:nfrp,項目名稱:ezpublish,代碼行數:9,代碼來源:ezimagetype_regression.php

示例13: tearDown

 public function tearDown()
 {
     // Remove trigger
     eZTrigger::removeTriggerForWorkflow($this->workflow->attribute('id'));
     // Log in as whoever was logged in
     eZUser::setCurrentlyLoggedInUser($this->currentUser, $this->currentUser->attribute('id'));
     // Important that the parent method is run AFTER changes are done to the database.
     parent::tearDown();
 }
開發者ID:brookinsconsulting,項目名稱:ezecosystem,代碼行數:9,代碼來源:ezapprovetype_regression.php

示例14: tearDown

 public function tearDown()
 {
     $this->solrSearch->removeObject($this->object->object);
     $this->object->remove();
     $this->object = null;
     $this->solrSearch = null;
     ezpINIHelper::restoreINISettings();
     parent::tearDown();
 }
開發者ID:netbliss,項目名稱:ezfind,代碼行數:9,代碼來源:ezsolr_regression.php

示例15: tearDown

 public function tearDown()
 {
     $nor = eZContentLanguage::fetchByLocale('nno-NO');
     $dan = eZContentLanguage::fetchByLocale('dan-DK');
     if ($nor) {
         $nor->removeThis();
     }
     if ($dan) {
         $dan->removeThis();
     }
     parent::tearDown();
 }
開發者ID:brookinsconsulting,項目名稱:ezecosystem,代碼行數:12,代碼來源:ezcontentlanguage_regression.php


注:本文中的ezpDatabaseTestCase::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。