コード例 #1
0
ファイル: BaseTest.php プロジェクト: boettner-it/aimeos-core
 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);
 }
コード例 #2
0
 public function testCreateControllerNotExisting()
 {
     $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
     \Aimeos\Controller\Frontend\Catalog\Factory::createController(\TestHelper::getContext(), 'notexist');
 }