本文整理汇总了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);
}
示例2: tearDown
protected function tearDown()
{
$collection = $this->getTestCronScheduleCollection();
foreach ($collection as $item) {
$item->delete();
}
parent::tearDown();
}
示例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();
}
示例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();
}
示例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();
}
示例6: tearDown
/**
* Unset everything before the next test.
*/
protected function tearDown()
{
unset($this->object);
parent::tearDown();
}
示例7: tearDown
public function tearDown()
{
parent::tearDown();
$this->openInvoiceNlModel = null;
}
示例8: tearDown
/**
* Unset everything before the next test.
*/
protected function tearDown()
{
$this->object->delete();
unset($this->object);
parent::tearDown();
}
示例9: tearDown
/**
* Enables events back
*/
protected function tearDown()
{
parent::tearDown();
$this->app()->enableEvents();
}
示例10: tearDown
protected function tearDown()
{
$this->_removeAttribute();
parent::tearDown();
}
示例11: tearDown
protected function tearDown()
{
$resource = Mage::getModel("core/resource");
$resource->getConnection("core_write")->delete($resource->getTableName("klevu_search/notification"));
parent::tearDown();
}
示例12: tearDown
protected function tearDown()
{
parent::tearDown();
Mage::unregister('_singleton/cacheobserver/config');
}
示例13: tearDown
public function tearDown()
{
$backend = new Netzarbeiter_Cache_Model_Symlink($this->_options);
$backend->clean();
parent::tearDown();
}