protected function tearDown() { \Aimeos\MShop\Factory::clear(); \Aimeos\MShop\Factory::setCache(false); \Aimeos\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() { \Aimeos\MShop\Factory::setCache(false); \Aimeos\MShop\Factory::clear(); $this->object = null; if (file_exists('tmp/import.zip')) { unlink('tmp/import.zip'); } }
public function testClearSpecific() { $cache = \Aimeos\MShop\Factory::setCache(true); $context = \TestHelperMShop::getContext(); $managerA1 = \Aimeos\MShop\Factory::createManager($context, 'attribute'); $managerB1 = \Aimeos\MShop\Factory::createManager($context, 'attribute/lists/type'); \Aimeos\MShop\Factory::clear((string) $context, 'attribute'); $managerA2 = \Aimeos\MShop\Factory::createManager($context, 'attribute'); $managerB2 = \Aimeos\MShop\Factory::createManager($context, 'attribute/lists/type'); \Aimeos\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); \Aimeos\Controller\Frontend\Factory::clear(); \Aimeos\MShop\Factory::clear(); }
protected function tearDown() { \Aimeos\MShop\Factory::clear(); }
protected function tearDown() { \Aimeos\MShop\Factory::setCache(false); \Aimeos\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() { \Aimeos\MShop\Factory::setCache(false); \Aimeos\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; \Aimeos\Controller\ExtJS\Factory::clear(); \Aimeos\MShop\Factory::clear(); }
public function tearDown() { \Aimeos\MShop\Factory::clear(); }