@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Latest\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Latest\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-latest', $result ); |
|
41 | + $this->assertContains('<div class="order-latest', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Salesday\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Salesday\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-salesday', $result ); |
|
41 | + $this->assertContains('<div class="order-salesday', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Countday\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Countday\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-countday', $result ); |
|
41 | + $this->assertContains('<div class="order-countday', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Servicedelivery\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Servicedelivery\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-servicedelivery', $result ); |
|
41 | + $this->assertContains('<div class="order-servicedelivery', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Servicepayment\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Servicepayment\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-servicepayment', $result ); |
|
41 | + $this->assertContains('<div class="order-servicepayment', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Salesmonth\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Salesmonth\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-salesmonth', $result ); |
|
41 | + $this->assertContains('<div class="order-salesmonth', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Salesweekday\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Salesweekday\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-salesweekday', $result ); |
|
41 | + $this->assertContains('<div class="order-salesweekday', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Countpaystatus\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Countpaystatus\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,21 +38,21 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( '<div class="order-countpaystatus', $result ); |
|
41 | + $this->assertContains('<div class="order-countpaystatus', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testSearchException() |
46 | 46 | { |
47 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
48 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
49 | - ->setMethods( array( 'getSubClients' ) ) |
|
47 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
48 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
49 | + ->setMethods(array('getSubClients')) |
|
50 | 50 | ->getMock(); |
51 | 51 | |
52 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
53 | - ->will( $this->throwException( new \RuntimeException() ) ); |
|
52 | + $object->expects($this->once())->method('getSubClients') |
|
53 | + ->will($this->throwException(new \RuntimeException())); |
|
54 | 54 | |
55 | - $object->setView( $this->getViewNoRender() ); |
|
55 | + $object->setView($this->getViewNoRender()); |
|
56 | 56 | |
57 | 57 | $object->search(); |
58 | 58 | } |
@@ -60,15 +60,15 @@ discard block |
||
60 | 60 | |
61 | 61 | public function testSearchMShopException() |
62 | 62 | { |
63 | - $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Dashboard\Standard::class ) |
|
64 | - ->setConstructorArgs( array( $this->context, \TestHelperJqadm::getTemplatePaths() ) ) |
|
65 | - ->setMethods( array( 'getSubClients' ) ) |
|
63 | + $object = $this->getMockBuilder(\Aimeos\Admin\JQAdm\Dashboard\Standard::class) |
|
64 | + ->setConstructorArgs(array($this->context, \TestHelperJqadm::getTemplatePaths())) |
|
65 | + ->setMethods(array('getSubClients')) |
|
66 | 66 | ->getMock(); |
67 | 67 | |
68 | - $object->expects( $this->once() )->method( 'getSubClients' ) |
|
69 | - ->will( $this->throwException( new \Aimeos\MShop\Exception() ) ); |
|
68 | + $object->expects($this->once())->method('getSubClients') |
|
69 | + ->will($this->throwException(new \Aimeos\MShop\Exception())); |
|
70 | 70 | |
71 | - $object->setView( $this->getViewNoRender() ); |
|
71 | + $object->setView($this->getViewNoRender()); |
|
72 | 72 | |
73 | 73 | $object->search(); |
74 | 74 | } |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testGetSubClient() |
78 | 78 | { |
79 | - $this->setExpectedException( \Aimeos\Admin\JQAdm\Exception::class ); |
|
80 | - $this->object->getSubClient( 'unknown' ); |
|
79 | + $this->setExpectedException(\Aimeos\Admin\JQAdm\Exception::class); |
|
80 | + $this->object->getSubClient('unknown'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | 84 | protected function getViewNoRender() |
85 | 85 | { |
86 | - return $this->getMockBuilder( \Aimeos\MW\View\Standard::class ) |
|
87 | - ->setConstructorArgs( array( [] ) ) |
|
88 | - ->setMethods( array( 'render', 'config' ) ) |
|
86 | + return $this->getMockBuilder(\Aimeos\MW\View\Standard::class) |
|
87 | + ->setConstructorArgs(array([])) |
|
88 | + ->setMethods(array('render', 'config')) |
|
89 | 89 | ->getMock(); |
90 | 90 | } |
91 | 91 | } |
@@ -21,16 +21,16 @@ discard block |
||
21 | 21 | $this->view = \TestHelperJqadm::getView(); |
22 | 22 | $this->context = \TestHelperJqadm::getContext(); |
23 | 23 | |
24 | - $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Standard( $this->context ); |
|
25 | - $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page( $this->object, $this->context ); |
|
26 | - $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
|
27 | - $this->object->setView( $this->view ); |
|
24 | + $this->object = new \Aimeos\Admin\JQAdm\Dashboard\Order\Standard($this->context); |
|
25 | + $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Page($this->object, $this->context); |
|
26 | + $this->object->setAimeos(\TestHelperJqadm::getAimeos()); |
|
27 | + $this->object->setView($this->view); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | protected function tearDown() |
32 | 32 | { |
33 | - unset( $this->object, $this->view, $this->context ); |
|
33 | + unset($this->object, $this->view, $this->context); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | |
@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | { |
39 | 39 | $result = $this->object->search(); |
40 | 40 | |
41 | - $this->assertContains( 'dashboard-order', $result ); |
|
41 | + $this->assertContains('dashboard-order', $result); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | 45 | public function testGetSubClient() |
46 | 46 | { |
47 | - $result = $this->object->getSubClient( 'countpaystatus' ); |
|
48 | - $this->assertInstanceOf( \Aimeos\Admin\JQAdm\Iface::class, $result ); |
|
47 | + $result = $this->object->getSubClient('countpaystatus'); |
|
48 | + $this->assertInstanceOf(\Aimeos\Admin\JQAdm\Iface::class, $result); |
|
49 | 49 | } |
50 | 50 | } |