public function testClearSpecific() { $cache = \Aimeos\Controller\ExtJS\Factory::setCache(true); $context = \TestHelper::getContext(); $cntlA1 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute'); $cntlB1 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute/lists/type'); \Aimeos\Controller\ExtJS\Factory::clear((string) $context, 'attribute'); $cntlA2 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute'); $cntlB2 = \Aimeos\Controller\ExtJS\Factory::createController($context, 'attribute/lists/type'); \Aimeos\Controller\ExtJS\Factory::setCache($cache); $this->assertNotSame($cntlA1, $cntlA2); $this->assertSame($cntlB1, $cntlB2); }
/** * 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\ExtJS\Factory::clear(); \Aimeos\MShop\Factory::clear(); }