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


PHP EcomDev_PHPUnit_Test_Case::tearDown方法代码示例

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


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

示例1: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $couponTable = Mage::getSingleton('core/resource')->getTableName('collpur/coupon');
     $write = Mage::getSingleton('core/resource')->getConnection('core_write');
     $write->truncate($couponTable);
 }
开发者ID:bigtailbear14,项目名称:rosstheme,代码行数:7,代码来源:AW_Collpur_Test_Model_Coupon.php

示例2: tearDown

 protected function tearDown()
 {
     $collection = $this->getTestCronScheduleCollection();
     foreach ($collection as $item) {
         $item->delete();
     }
     parent::tearDown();
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:8,代码来源:Sync.php

示例3: tearDown

 public function tearDown()
 {
     $collection = $this->getProductSyncCronScheduleCollection();
     foreach ($collection as $item) {
         $item->delete();
     }
     $resource = Mage::getModel("core/resource");
     $resource->getConnection("core_write")->delete($resource->getTableName("klevu_search/order_sync"));
     parent::tearDown();
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:10,代码来源:Observer.php

示例4: tearDown

 public function tearDown()
 {
     $collection = $this->getProductSyncCronScheduleCollection();
     foreach ($collection as $item) {
         $item->delete();
     }
     $resource = Mage::getModel("core/resource");
     $resource->getConnection("core_write")->delete($resource->getTableName("klevu_search/order_sync"));
     EcomDev_Utils_Reflection::setRestrictedPropertyValue(Mage::getConfig(), "_classNameCache", array());
     parent::tearDown();
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:11,代码来源:Observer.php

示例5: tearDown

 protected function tearDown()
 {
     $this->getConfig()->deleteConfig("klevu_search/general/enabled");
     $this->getConfig()->deleteConfig("klevu_search/general/js_api_key");
     $this->getConfig()->deleteConfig("klevu_search/general/rest_api_key");
     $this->getConfig()->deleteConfig("klevu_search/product_sync/enabled");
     $this->getConfig()->deleteConfig("klevu_search/product_sync/frequency");
     $this->getConfig()->deleteConfig("klevu_search/attributes/additional");
     $this->getConfig()->deleteConfig("klevu_search/order_sync/enabled");
     $this->getConfig()->deleteConfig("klevu_search/order_sync/frequency");
     $this->getConfig()->deleteConfig("klevu_search/developer/force_log");
     $this->getConfig()->deleteConfig("klevu_search/developer/log_level");
     parent::tearDown();
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:14,代码来源:Config.php

示例6: tearDown

 /**
  * Unset everything before the next test.
  */
 protected function tearDown()
 {
     unset($this->object);
     parent::tearDown();
 }
开发者ID:KaiBerkemeyer,项目名称:Barzahlen-Magento-1,代码行数:8,代码来源:Payment.php

示例7: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->openInvoiceNlModel = null;
 }
开发者ID:roshu1980,项目名称:add-computers,代码行数:5,代码来源:OpenInvoiceNlTest.php

示例8: tearDown

 /**
  * Unset everything before the next test.
  */
 protected function tearDown()
 {
     $this->object->delete();
     unset($this->object);
     parent::tearDown();
 }
开发者ID:KaiBerkemeyer,项目名称:Barzahlen-Magento-1,代码行数:9,代码来源:Paymentkey.php

示例9: tearDown

 /**
  * Enables events back
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->app()->enableEvents();
 }
开发者ID:amorkan,项目名称:firegento-dynamiccategory,代码行数:8,代码来源:Rule.php

示例10: tearDown

 protected function tearDown()
 {
     $this->_removeAttribute();
     parent::tearDown();
 }
开发者ID:giuseppemorelli,项目名称:IntegerNet_AttributeOptionPager,代码行数:5,代码来源:Tab.php

示例11: tearDown

 protected function tearDown()
 {
     $resource = Mage::getModel("core/resource");
     $resource->getConnection("core_write")->delete($resource->getTableName("klevu_search/notification"));
     parent::tearDown();
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:6,代码来源:Notification.php

示例12: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     Mage::unregister('_singleton/cacheobserver/config');
 }
开发者ID:aligent,项目名称:cacheobserver,代码行数:5,代码来源:Config.php

示例13: tearDown

 public function tearDown()
 {
     $backend = new Netzarbeiter_Cache_Model_Symlink($this->_options);
     $backend->clean();
     parent::tearDown();
 }
开发者ID:demon-tdr,项目名称:Symlink-Cache,代码行数:6,代码来源:Symlink.php


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