本文整理匯總了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();
}