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