@@ -15,31 +15,31 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $target = '\\Aimeos\\Controller\\Frontend\\Product\\Iface'; |
| 17 | 17 | |
| 18 | - $controller = \Aimeos\Controller\Frontend\Product\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 19 | - $this->assertInstanceOf( $target, $controller ); |
|
| 18 | + $controller = \Aimeos\Controller\Frontend\Product\Factory::create(\TestHelperFrontend::getContext()); |
|
| 19 | + $this->assertInstanceOf($target, $controller); |
|
| 20 | 20 | |
| 21 | - $controller = \Aimeos\Controller\Frontend\Product\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 22 | - $this->assertInstanceOf( $target, $controller ); |
|
| 21 | + $controller = \Aimeos\Controller\Frontend\Product\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 22 | + $this->assertInstanceOf($target, $controller); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | public function testCreateControllerInvalidImplementation() |
| 27 | 27 | { |
| 28 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 29 | - \Aimeos\Controller\Frontend\Product\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 28 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 29 | + \Aimeos\Controller\Frontend\Product\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | public function testCreateControllerInvalidName() |
| 34 | 34 | { |
| 35 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 36 | - \Aimeos\Controller\Frontend\Product\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 35 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 36 | + \Aimeos\Controller\Frontend\Product\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | public function testCreateControllerNotExisting() |
| 41 | 41 | { |
| 42 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 43 | - \Aimeos\Controller\Frontend\Product\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 42 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 43 | + \Aimeos\Controller\Frontend\Product\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 44 | 44 | } |
| 45 | 45 | } |
@@ -15,31 +15,31 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $target = '\\Aimeos\\Controller\\Frontend\\Subscription\\Iface'; |
| 17 | 17 | |
| 18 | - $controller = \Aimeos\Controller\Frontend\Subscription\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 19 | - $this->assertInstanceOf( $target, $controller ); |
|
| 18 | + $controller = \Aimeos\Controller\Frontend\Subscription\Factory::create(\TestHelperFrontend::getContext()); |
|
| 19 | + $this->assertInstanceOf($target, $controller); |
|
| 20 | 20 | |
| 21 | - $controller = \Aimeos\Controller\Frontend\Subscription\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 22 | - $this->assertInstanceOf( $target, $controller ); |
|
| 21 | + $controller = \Aimeos\Controller\Frontend\Subscription\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 22 | + $this->assertInstanceOf($target, $controller); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | public function testCreateControllerInvalidImplementation() |
| 27 | 27 | { |
| 28 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 29 | - \Aimeos\Controller\Frontend\Subscription\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 28 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 29 | + \Aimeos\Controller\Frontend\Subscription\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | public function testCreateControllerInvalidName() |
| 34 | 34 | { |
| 35 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 36 | - \Aimeos\Controller\Frontend\Subscription\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 35 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 36 | + \Aimeos\Controller\Frontend\Subscription\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | public function testCreateControllerNotExisting() |
| 41 | 41 | { |
| 42 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 43 | - \Aimeos\Controller\Frontend\Subscription\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 42 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 43 | + \Aimeos\Controller\Frontend\Subscription\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 44 | 44 | } |
| 45 | 45 | } |
@@ -15,31 +15,31 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $target = '\\Aimeos\\Controller\\Frontend\\Service\\Iface'; |
| 17 | 17 | |
| 18 | - $controller = \Aimeos\Controller\Frontend\Service\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 19 | - $this->assertInstanceOf( $target, $controller ); |
|
| 18 | + $controller = \Aimeos\Controller\Frontend\Service\Factory::create(\TestHelperFrontend::getContext()); |
|
| 19 | + $this->assertInstanceOf($target, $controller); |
|
| 20 | 20 | |
| 21 | - $controller = \Aimeos\Controller\Frontend\Service\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 22 | - $this->assertInstanceOf( $target, $controller ); |
|
| 21 | + $controller = \Aimeos\Controller\Frontend\Service\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 22 | + $this->assertInstanceOf($target, $controller); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | public function testCreateControllerInvalidImplementation() |
| 27 | 27 | { |
| 28 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 29 | - \Aimeos\Controller\Frontend\Service\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 28 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 29 | + \Aimeos\Controller\Frontend\Service\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | public function testCreateControllerInvalidName() |
| 34 | 34 | { |
| 35 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 36 | - \Aimeos\Controller\Frontend\Service\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 35 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 36 | + \Aimeos\Controller\Frontend\Service\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | public function testCreateControllerNotExisting() |
| 41 | 41 | { |
| 42 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 43 | - \Aimeos\Controller\Frontend\Service\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 42 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 43 | + \Aimeos\Controller\Frontend\Service\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 44 | 44 | } |
| 45 | 45 | } |
@@ -16,31 +16,31 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $target = '\\Aimeos\\Controller\\Frontend\\Order\\Iface'; |
| 18 | 18 | |
| 19 | - $controller = \Aimeos\Controller\Frontend\Order\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 20 | - $this->assertInstanceOf( $target, $controller ); |
|
| 19 | + $controller = \Aimeos\Controller\Frontend\Order\Factory::create(\TestHelperFrontend::getContext()); |
|
| 20 | + $this->assertInstanceOf($target, $controller); |
|
| 21 | 21 | |
| 22 | - $controller = \Aimeos\Controller\Frontend\Order\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 23 | - $this->assertInstanceOf( $target, $controller ); |
|
| 22 | + $controller = \Aimeos\Controller\Frontend\Order\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 23 | + $this->assertInstanceOf($target, $controller); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | public function testCreateControllerInvalidImplementation() |
| 28 | 28 | { |
| 29 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 30 | - \Aimeos\Controller\Frontend\Order\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 29 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 30 | + \Aimeos\Controller\Frontend\Order\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | public function testCreateControllerInvalidName() |
| 35 | 35 | { |
| 36 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 37 | - \Aimeos\Controller\Frontend\Order\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 36 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 37 | + \Aimeos\Controller\Frontend\Order\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | public function testCreateControllerNotExisting() |
| 42 | 42 | { |
| 43 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 44 | - \Aimeos\Controller\Frontend\Order\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 43 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 44 | + \Aimeos\Controller\Frontend\Order\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 45 | 45 | } |
| 46 | 46 | } |
@@ -15,31 +15,31 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $target = '\\Aimeos\\Controller\\Frontend\\Customer\\Iface'; |
| 17 | 17 | |
| 18 | - $controller = \Aimeos\Controller\Frontend\Customer\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 19 | - $this->assertInstanceOf( $target, $controller ); |
|
| 18 | + $controller = \Aimeos\Controller\Frontend\Customer\Factory::create(\TestHelperFrontend::getContext()); |
|
| 19 | + $this->assertInstanceOf($target, $controller); |
|
| 20 | 20 | |
| 21 | - $controller = \Aimeos\Controller\Frontend\Customer\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 22 | - $this->assertInstanceOf( $target, $controller ); |
|
| 21 | + $controller = \Aimeos\Controller\Frontend\Customer\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 22 | + $this->assertInstanceOf($target, $controller); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | public function testCreateControllerInvalidImplementation() |
| 27 | 27 | { |
| 28 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 29 | - \Aimeos\Controller\Frontend\Customer\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 28 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 29 | + \Aimeos\Controller\Frontend\Customer\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | public function testCreateControllerInvalidName() |
| 34 | 34 | { |
| 35 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 36 | - \Aimeos\Controller\Frontend\Customer\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 35 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 36 | + \Aimeos\Controller\Frontend\Customer\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | public function testCreateControllerNotExisting() |
| 41 | 41 | { |
| 42 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 43 | - \Aimeos\Controller\Frontend\Customer\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 42 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 43 | + \Aimeos\Controller\Frontend\Customer\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 44 | 44 | } |
| 45 | 45 | } |
@@ -20,33 +20,33 @@ |
||
| 20 | 20 | $this->context = \TestHelperFrontend::getContext(); |
| 21 | 21 | $config = $this->context->getConfig(); |
| 22 | 22 | |
| 23 | - $config->set( 'controller/frontend/common/decorators/default', [] ); |
|
| 24 | - $config->set( 'controller/frontend/catalog/decorators/global', [] ); |
|
| 25 | - $config->set( 'controller/frontend/catalog/decorators/local', [] ); |
|
| 23 | + $config->set('controller/frontend/common/decorators/default', []); |
|
| 24 | + $config->set('controller/frontend/catalog/decorators/global', []); |
|
| 25 | + $config->set('controller/frontend/catalog/decorators/local', []); |
|
| 26 | 26 | |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | public function testInjectController() |
| 31 | 31 | { |
| 32 | - $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create( $this->context, 'Standard' ); |
|
| 33 | - \Aimeos\Controller\Frontend\Catalog\Factory::injectController( '\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', $controller ); |
|
| 32 | + $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create($this->context, 'Standard'); |
|
| 33 | + \Aimeos\Controller\Frontend\Catalog\Factory::injectController('\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', $controller); |
|
| 34 | 34 | |
| 35 | - $injectedController = \Aimeos\Controller\Frontend\Catalog\Factory::create( $this->context, 'Standard' ); |
|
| 35 | + $injectedController = \Aimeos\Controller\Frontend\Catalog\Factory::create($this->context, 'Standard'); |
|
| 36 | 36 | |
| 37 | - $this->assertSame( $controller, $injectedController ); |
|
| 37 | + $this->assertSame($controller, $injectedController); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | public function testInjectControllerReset() |
| 42 | 42 | { |
| 43 | - $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create( $this->context, 'Standard' ); |
|
| 44 | - \Aimeos\Controller\Frontend\Catalog\Factory::injectController( '\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', $controller ); |
|
| 45 | - \Aimeos\Controller\Frontend\Catalog\Factory::injectController( '\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', null ); |
|
| 43 | + $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create($this->context, 'Standard'); |
|
| 44 | + \Aimeos\Controller\Frontend\Catalog\Factory::injectController('\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', $controller); |
|
| 45 | + \Aimeos\Controller\Frontend\Catalog\Factory::injectController('\\Aimeos\\Controller\\Frontend\\Catalog\\Standard', null); |
|
| 46 | 46 | |
| 47 | - $new = \Aimeos\Controller\Frontend\Catalog\Factory::create( $this->context, 'Standard' ); |
|
| 47 | + $new = \Aimeos\Controller\Frontend\Catalog\Factory::create($this->context, 'Standard'); |
|
| 48 | 48 | |
| 49 | - $this->assertNotSame( $controller, $new ); |
|
| 49 | + $this->assertNotSame($controller, $new); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | } |
| 53 | 53 | \ No newline at end of file |
@@ -15,31 +15,31 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $target = '\\Aimeos\\Controller\\Frontend\\Locale\\Iface'; |
| 17 | 17 | |
| 18 | - $controller = \Aimeos\Controller\Frontend\Locale\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 19 | - $this->assertInstanceOf( $target, $controller ); |
|
| 18 | + $controller = \Aimeos\Controller\Frontend\Locale\Factory::create(\TestHelperFrontend::getContext()); |
|
| 19 | + $this->assertInstanceOf($target, $controller); |
|
| 20 | 20 | |
| 21 | - $controller = \Aimeos\Controller\Frontend\Locale\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 22 | - $this->assertInstanceOf( $target, $controller ); |
|
| 21 | + $controller = \Aimeos\Controller\Frontend\Locale\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 22 | + $this->assertInstanceOf($target, $controller); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | public function testCreateControllerInvalidImplementation() |
| 27 | 27 | { |
| 28 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 29 | - \Aimeos\Controller\Frontend\Locale\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 28 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 29 | + \Aimeos\Controller\Frontend\Locale\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | public function testCreateControllerInvalidName() |
| 34 | 34 | { |
| 35 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 36 | - \Aimeos\Controller\Frontend\Locale\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 35 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 36 | + \Aimeos\Controller\Frontend\Locale\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | public function testCreateControllerNotExisting() |
| 41 | 41 | { |
| 42 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 43 | - \Aimeos\Controller\Frontend\Locale\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 42 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 43 | + \Aimeos\Controller\Frontend\Locale\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 44 | 44 | } |
| 45 | 45 | } |
@@ -14,31 +14,31 @@ |
||
| 14 | 14 | { |
| 15 | 15 | $target = '\\Aimeos\\Controller\\Frontend\\Basket\\Iface'; |
| 16 | 16 | |
| 17 | - $controller = \Aimeos\Controller\Frontend\Basket\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 18 | - $this->assertInstanceOf( $target, $controller ); |
|
| 17 | + $controller = \Aimeos\Controller\Frontend\Basket\Factory::create(\TestHelperFrontend::getContext()); |
|
| 18 | + $this->assertInstanceOf($target, $controller); |
|
| 19 | 19 | |
| 20 | - $controller = \Aimeos\Controller\Frontend\Basket\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 21 | - $this->assertInstanceOf( $target, $controller ); |
|
| 20 | + $controller = \Aimeos\Controller\Frontend\Basket\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 21 | + $this->assertInstanceOf($target, $controller); |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | public function testCreateControllerInvalidImplementation() |
| 26 | 26 | { |
| 27 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 28 | - \Aimeos\Controller\Frontend\Basket\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 27 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 28 | + \Aimeos\Controller\Frontend\Basket\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | public function testCreateControllerInvalidName() |
| 33 | 33 | { |
| 34 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 35 | - \Aimeos\Controller\Frontend\Basket\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 34 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 35 | + \Aimeos\Controller\Frontend\Basket\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | public function testCreateControllerNotExisting() |
| 40 | 40 | { |
| 41 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 42 | - \Aimeos\Controller\Frontend\Basket\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 41 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 42 | + \Aimeos\Controller\Frontend\Basket\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -14,31 +14,31 @@ |
||
| 14 | 14 | { |
| 15 | 15 | $target = '\\Aimeos\\Controller\\Frontend\\Catalog\\Iface'; |
| 16 | 16 | |
| 17 | - $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create( \TestHelperFrontend::getContext() ); |
|
| 18 | - $this->assertInstanceOf( $target, $controller ); |
|
| 17 | + $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create(\TestHelperFrontend::getContext()); |
|
| 18 | + $this->assertInstanceOf($target, $controller); |
|
| 19 | 19 | |
| 20 | - $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create( \TestHelperFrontend::getContext(), 'Standard' ); |
|
| 21 | - $this->assertInstanceOf( $target, $controller ); |
|
| 20 | + $controller = \Aimeos\Controller\Frontend\Catalog\Factory::create(\TestHelperFrontend::getContext(), 'Standard'); |
|
| 21 | + $this->assertInstanceOf($target, $controller); |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | public function testCreateControllerInvalidImplementation() |
| 26 | 26 | { |
| 27 | - $this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' ); |
|
| 28 | - \Aimeos\Controller\Frontend\Catalog\Factory::create( \TestHelperFrontend::getContext(), 'Invalid' ); |
|
| 27 | + $this->setExpectedException('\\Aimeos\\MW\\Common\\Exception'); |
|
| 28 | + \Aimeos\Controller\Frontend\Catalog\Factory::create(\TestHelperFrontend::getContext(), 'Invalid'); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | public function testCreateControllerInvalidName() |
| 33 | 33 | { |
| 34 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 35 | - \Aimeos\Controller\Frontend\Catalog\Factory::create( \TestHelperFrontend::getContext(), '%^' ); |
|
| 34 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 35 | + \Aimeos\Controller\Frontend\Catalog\Factory::create(\TestHelperFrontend::getContext(), '%^'); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | public function testCreateControllerNotExisting() |
| 40 | 40 | { |
| 41 | - $this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' ); |
|
| 42 | - \Aimeos\Controller\Frontend\Catalog\Factory::create( \TestHelperFrontend::getContext(), 'notexist' ); |
|
| 41 | + $this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception'); |
|
| 42 | + \Aimeos\Controller\Frontend\Catalog\Factory::create(\TestHelperFrontend::getContext(), 'notexist'); |
|
| 43 | 43 | } |
| 44 | 44 | } |