public function testInjectControllerReset() { $controller = \Aimeos\Controller\Frontend\Catalog\Factory::createController($this->context, 'Standard'); \Aimeos\Controller\Frontend\Catalog\Factory::injectController('\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', $controller); \Aimeos\Controller\Frontend\Catalog\Factory::injectController('\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', null); $new = \Aimeos\Controller\Frontend\Catalog\Factory::createController($this->context, 'Standard'); $this->assertNotSame($controller, $new); }
public function testCreateControllerNotExisting() { $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); \Aimeos\Controller\Frontend\Catalog\Factory::createController(\TestHelper::getContext(), 'notexist'); }