protected function tearDown() { MShop_Factory::clear(); MShop_Factory::setCache(false); Controller_Frontend_Basket_Factory::createController($this->_context)->clear(); unset($this->_object); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @access protected */ protected function tearDown() { MShop_Factory::setCache(false); MShop_Factory::clear(); $this->_object = null; if (file_exists('tmp/import.zip')) { unlink('tmp/import.zip'); } }
public function testClearSpecific() { $cache = MShop_Factory::setCache(true); $context = TestHelper::getContext(); $managerA1 = MShop_Factory::createManager($context, 'attribute'); $managerB1 = MShop_Factory::createManager($context, 'attribute/list/type'); MShop_Factory::clear((string) $context, 'attribute'); $managerA2 = MShop_Factory::createManager($context, 'attribute'); $managerB2 = MShop_Factory::createManager($context, 'attribute/list/type'); MShop_Factory::setCache($cache); $this->assertNotSame($managerA1, $managerA2); $this->assertSame($managerB1, $managerB2); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @access protected */ protected function tearDown() { unset($this->_object); Controller_Frontend_Factory::clear(); MShop_Factory::clear(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @access protected */ protected function tearDown() { unset($this->_object); MShop_Factory::clear(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @access protected */ protected function tearDown() { $this->_object = null; Controller_ExtJS_Factory::clear(); MShop_Factory::clear(); }
protected function tearDown() { MShop_Factory::setCache(false); MShop_Factory::clear(); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @access protected */ protected function tearDown() { MShop_Factory::setCache(false); MShop_Factory::clear(); $this->_object = null; }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @access protected */ protected function tearDown() { $this->_object = null; MShop_Factory::clear(); }