예제 #1
0
 public function tearDown()
 {
     $adminSession = Mage::getSingleton('admin/session');
     $adminSession->unsetAll();
     $adminSession->getCookie()->delete($adminSession->getSessionName());
     parent::tearDown();
 }
예제 #2
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->_cache->saveOptions($this->_cacheOptions);
     // unregister fpc
     Mage::unregister('_singleton/fpc/fpc');
     Mage::getSingleton('customer/session')->logout();
 }
예제 #3
0
 protected function tearDown()
 {
     $this->getLayout()->reset();
     $this->collection = null;
     Mage::unregister('_singleton/catalogsearch/layer');
     Mage::unregister('current_layer');
     Mage::unregister('current_category_filter');
     // Delete all products
     Mage::getResourceModel('catalog/product_collection')->delete();
     parent::tearDown();
 }
예제 #4
0
 /**
  * Delete created color option
  */
 protected function tearDown()
 {
     $setup = new Mage_Catalog_Model_Resource_Setup('catalog_setup');
     Mage::getModel('eav/entity_attribute_option')->setId($this->optionId)->delete();
     parent::tearDown();
 }
 /**
  * Unset everything before the next test.
  */
 public function tearDown()
 {
     unset($this->object);
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     Mage::unregister('ops_auto_capture');
 }