当前位置: 首页>>代码示例>>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;未经允许,请勿转载。