@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function indexAction() |
30 | 30 | { |
31 | - $params = $this->get( 'aimeos_page' )->getSections( 'basket-index' ); |
|
32 | - return $this->render( 'AimeosShopBundle:Basket:index.html.twig', $params ); |
|
31 | + $params = $this->get('aimeos_page')->getSections('basket-index'); |
|
32 | + return $this->render('AimeosShopBundle:Basket:index.html.twig', $params); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function miniComponentAction() |
41 | 41 | { |
42 | - return $this->getOutput( 'basket/mini' ); |
|
42 | + return $this->getOutput('basket/mini'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function relatedComponentAction() |
52 | 52 | { |
53 | - return $this->getOutput( 'basket/related' ); |
|
53 | + return $this->getOutput('basket/related'); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | |
@@ -61,6 +61,6 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function standardComponentAction() |
63 | 63 | { |
64 | - return $this->getOutput( 'basket/standard' ); |
|
64 | + return $this->getOutput('basket/standard'); |
|
65 | 65 | } |
66 | 66 | } |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function confirmAction() |
30 | 30 | { |
31 | - $params = $this->get( 'aimeos_page' )->getSections( 'checkout-confirm' ); |
|
32 | - return $this->render( 'AimeosShopBundle:Checkout:confirm.html.twig', $params ); |
|
31 | + $params = $this->get('aimeos_page')->getSections('checkout-confirm'); |
|
32 | + return $this->render('AimeosShopBundle:Checkout:confirm.html.twig', $params); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function indexAction() |
42 | 42 | { |
43 | - $params = $this->get( 'aimeos_page' )->getSections( 'checkout-index' ); |
|
44 | - return $this->render( 'AimeosShopBundle:Checkout:index.html.twig', $params ); |
|
43 | + $params = $this->get('aimeos_page')->getSections('checkout-index'); |
|
44 | + return $this->render('AimeosShopBundle:Checkout:index.html.twig', $params); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function updateAction() |
54 | 54 | { |
55 | - $params = $this->get( 'aimeos_page' )->getSections( 'checkout-update' ); |
|
56 | - return $this->render( 'AimeosShopBundle:Checkout:update.html.twig', $params ); |
|
55 | + $params = $this->get('aimeos_page')->getSections('checkout-update'); |
|
56 | + return $this->render('AimeosShopBundle:Checkout:update.html.twig', $params); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function confirmComponentAction() |
66 | 66 | { |
67 | - return $this->getOutput( 'checkout/confirm' ); |
|
67 | + return $this->getOutput('checkout/confirm'); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function standardComponentAction() |
77 | 77 | { |
78 | - return $this->getOutput( 'checkout/standard' ); |
|
78 | + return $this->getOutput('checkout/standard'); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function updateComponentAction() |
88 | 88 | { |
89 | - return $this->getOutput( 'checkout/update' ); |
|
89 | + return $this->getOutput('checkout/update'); |
|
90 | 90 | } |
91 | 91 | } |
@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public function selectComponentAction() |
30 | 30 | { |
31 | - return $this->getOutput( 'locale/select' ); |
|
31 | + return $this->getOutput('locale/select'); |
|
32 | 32 | } |
33 | 33 | } |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function countAction() |
30 | 30 | { |
31 | - $params = $this->get( 'aimeos_page' )->getSections( 'catalog-count' ); |
|
32 | - return $this->render( 'AimeosShopBundle:Catalog:count.html.twig', $params ); |
|
31 | + $params = $this->get('aimeos_page')->getSections('catalog-count'); |
|
32 | + return $this->render('AimeosShopBundle:Catalog:count.html.twig', $params); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function detailAction() |
42 | 42 | { |
43 | - $params = $this->get( 'aimeos_page' )->getSections( 'catalog-detail' ); |
|
44 | - return $this->render( 'AimeosShopBundle:Catalog:detail.html.twig', $params ); |
|
43 | + $params = $this->get('aimeos_page')->getSections('catalog-detail'); |
|
44 | + return $this->render('AimeosShopBundle:Catalog:detail.html.twig', $params); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function listAction() |
54 | 54 | { |
55 | - $params = $this->get( 'aimeos_page' )->getSections( 'catalog-list' ); |
|
56 | - return $this->render( 'AimeosShopBundle:Catalog:list.html.twig', $params ); |
|
55 | + $params = $this->get('aimeos_page')->getSections('catalog-list'); |
|
56 | + return $this->render('AimeosShopBundle:Catalog:list.html.twig', $params); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function stockAction() |
66 | 66 | { |
67 | - $params = $this->get( 'aimeos_page' )->getSections( 'catalog-stock' ); |
|
68 | - return $this->render( 'AimeosShopBundle:Catalog:stock.html.twig', $params ); |
|
67 | + $params = $this->get('aimeos_page')->getSections('catalog-stock'); |
|
68 | + return $this->render('AimeosShopBundle:Catalog:stock.html.twig', $params); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function suggestAction() |
78 | 78 | { |
79 | - $params = $this->get( 'aimeos_page' )->getSections( 'catalog-suggest' ); |
|
80 | - return $this->render( 'AimeosShopBundle:Catalog:suggest.html.twig', $params ); |
|
79 | + $params = $this->get('aimeos_page')->getSections('catalog-suggest'); |
|
80 | + return $this->render('AimeosShopBundle:Catalog:suggest.html.twig', $params); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function countComponentAction() |
90 | 90 | { |
91 | - return $this->getOutput( 'catalog/count' ); |
|
91 | + return $this->getOutput('catalog/count'); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function detailComponentAction() |
101 | 101 | { |
102 | - return $this->getOutput( 'catalog/detail' ); |
|
102 | + return $this->getOutput('catalog/detail'); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function filterComponentAction() |
112 | 112 | { |
113 | - return $this->getOutput( 'catalog/filter' ); |
|
113 | + return $this->getOutput('catalog/filter'); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | public function listComponentAction() |
123 | 123 | { |
124 | - return $this->getOutput( 'catalog/lists' ); |
|
124 | + return $this->getOutput('catalog/lists'); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function sessionComponentAction() |
134 | 134 | { |
135 | - return $this->getOutput( 'catalog/session' ); |
|
135 | + return $this->getOutput('catalog/session'); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function stageComponentAction() |
145 | 145 | { |
146 | - return $this->getOutput( 'catalog/stage' ); |
|
146 | + return $this->getOutput('catalog/stage'); |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | */ |
155 | 155 | public function stockComponentAction() |
156 | 156 | { |
157 | - return $this->getOutput( 'catalog/stock' ); |
|
157 | + return $this->getOutput('catalog/stock'); |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | |
@@ -165,6 +165,6 @@ discard block |
||
165 | 165 | */ |
166 | 166 | public function suggestComponentAction() |
167 | 167 | { |
168 | - return $this->getOutput( 'catalog/suggest' ); |
|
168 | + return $this->getOutput('catalog/suggest'); |
|
169 | 169 | } |
170 | 170 | } |
@@ -28,29 +28,29 @@ |
||
28 | 28 | * @param string $clientName Html client name |
29 | 29 | * @return Response Response object containing the generated output |
30 | 30 | */ |
31 | - protected function getOutput( $clientName ) |
|
31 | + protected function getOutput($clientName) |
|
32 | 32 | { |
33 | - $tmplPaths = $this->container->get( 'aimeos' )->get()->getCustomPaths( 'client/html/templates' ); |
|
34 | - $context = $this->container->get( 'aimeos_context' )->get(); |
|
33 | + $tmplPaths = $this->container->get('aimeos')->get()->getCustomPaths('client/html/templates'); |
|
34 | + $context = $this->container->get('aimeos_context')->get(); |
|
35 | 35 | $langid = $context->getLocale()->getLanguageId(); |
36 | 36 | |
37 | - $view = $this->container->get( 'aimeos_view' )->create( $context, $tmplPaths, $langid ); |
|
38 | - $context->setView( $view ); |
|
37 | + $view = $this->container->get('aimeos_view')->create($context, $tmplPaths, $langid); |
|
38 | + $context->setView($view); |
|
39 | 39 | |
40 | - $client = \Aimeos\Client\Html\Factory::createClient( $context, $tmplPaths, $clientName ); |
|
41 | - $client->setView( $view ); |
|
40 | + $client = \Aimeos\Client\Html\Factory::createClient($context, $tmplPaths, $clientName); |
|
41 | + $client->setView($view); |
|
42 | 42 | $client->process(); |
43 | 43 | |
44 | - $twig = $this->container->get( 'twig' ); |
|
44 | + $twig = $this->container->get('twig'); |
|
45 | 45 | $vars = $twig->getGlobals(); |
46 | 46 | |
47 | - if( !isset( $vars['aiheader'] ) ) { |
|
47 | + if (!isset($vars['aiheader'])) { |
|
48 | 48 | $vars['aiheader'] = array(); |
49 | 49 | } |
50 | 50 | |
51 | 51 | $vars['aiheader'][$clientName] = (string) $client->getHeader(); |
52 | - $twig->addGlobal( 'aiheader', $vars['aiheader'] ); |
|
52 | + $twig->addGlobal('aiheader', $vars['aiheader']); |
|
53 | 53 | |
54 | - return new Response( (string) $client->getBody() ); |
|
54 | + return new Response((string) $client->getBody()); |
|
55 | 55 | } |
56 | 56 | } |
@@ -11,11 +11,11 @@ discard block |
||
11 | 11 | { |
12 | 12 | $client = static::createClient(); |
13 | 13 | |
14 | - $client->request( 'GET', '/admin' ); |
|
14 | + $client->request('GET', '/admin'); |
|
15 | 15 | $response = $client->getResponse(); |
16 | 16 | |
17 | - $this->assertEquals( 200, $response->getStatusCode() ); |
|
18 | - $this->assertContains( '<form class="login"', $response->getContent() ); |
|
17 | + $this->assertEquals(200, $response->getStatusCode()); |
|
18 | + $this->assertContains('<form class="login"', $response->getContent()); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | $client = static::createClient(array(), array( |
25 | 25 | 'PHP_AUTH_USER' => 'admin', |
26 | 26 | 'PHP_AUTH_PW' => 'adminpass', |
27 | - ) ); |
|
27 | + )); |
|
28 | 28 | |
29 | - $client->request( 'GET', '/admin' ); |
|
29 | + $client->request('GET', '/admin'); |
|
30 | 30 | $response = $client->getResponse(); |
31 | 31 | |
32 | - $this->assertEquals( 302, $response->getStatusCode() ); |
|
33 | - $this->assertContains( '/default/jqadm/search/dashboard?lang=en', $response->getContent() ); |
|
32 | + $this->assertEquals(302, $response->getStatusCode()); |
|
33 | + $this->assertContains('/default/jqadm/search/dashboard?lang=en', $response->getContent()); |
|
34 | 34 | } |
35 | 35 | } |
@@ -29,23 +29,23 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function indexAction() |
31 | 31 | { |
32 | - if( $this->isAdmin() ) |
|
32 | + if ($this->isAdmin()) |
|
33 | 33 | { |
34 | - $params = array( 'site' => 'default', 'resource' => 'dashboard', 'lang' => 'en' ); |
|
35 | - return $this->redirect( $this->generateUrl( 'aimeos_shop_jqadm_search', $params ) ); |
|
34 | + $params = array('site' => 'default', 'resource' => 'dashboard', 'lang' => 'en'); |
|
35 | + return $this->redirect($this->generateUrl('aimeos_shop_jqadm_search', $params)); |
|
36 | 36 | } |
37 | 37 | |
38 | - $param = array( 'error' => '', 'username' => '' ); |
|
38 | + $param = array('error' => '', 'username' => ''); |
|
39 | 39 | |
40 | - if( $this->has( 'security.authentication_utils' ) ) |
|
40 | + if ($this->has('security.authentication_utils')) |
|
41 | 41 | { |
42 | - $auth = $this->get( 'security.authentication_utils' ); |
|
42 | + $auth = $this->get('security.authentication_utils'); |
|
43 | 43 | |
44 | 44 | $param['error'] = $auth->getLastAuthenticationError(); |
45 | 45 | $param['username'] = $auth->getLastUsername(); |
46 | 46 | } |
47 | 47 | |
48 | - return $this->render( 'AimeosShopBundle:Admin:index.html.twig', $param ); |
|
48 | + return $this->render('AimeosShopBundle:Admin:index.html.twig', $param); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | |
@@ -56,10 +56,10 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function isAdmin() |
58 | 58 | { |
59 | - if( $this->has( 'security.authorization_checker' ) && $this->get( 'security.token_storage' )->getToken() |
|
60 | - && $this->get( 'security.authorization_checker' )->isGranted( 'ROLE_ADMIN' ) |
|
61 | - || $this->has( 'security.context' ) && $this->get( 'security.context' )->getToken() |
|
62 | - && $this->get( 'security.context' )->isGranted( 'ROLE_ADMIN' ) |
|
59 | + if ($this->has('security.authorization_checker') && $this->get('security.token_storage')->getToken() |
|
60 | + && $this->get('security.authorization_checker')->isGranted('ROLE_ADMIN') |
|
61 | + || $this->has('security.context') && $this->get('security.context')->getToken() |
|
62 | + && $this->get('security.context')->isGranted('ROLE_ADMIN') |
|
63 | 63 | ) { |
64 | 64 | return true; |
65 | 65 | } |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function indexAction() |
30 | 30 | { |
31 | - $params = $this->get( 'aimeos_page' )->getSections( 'account-index' ); |
|
32 | - return $this->render( 'AimeosShopBundle:Account:index.html.twig', $params ); |
|
31 | + $params = $this->get('aimeos_page')->getSections('account-index'); |
|
32 | + return $this->render('AimeosShopBundle:Account:index.html.twig', $params); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | |
@@ -43,15 +43,15 @@ discard block |
||
43 | 43 | $context = $this->container->get('aimeos_context')->get(); |
44 | 44 | $langid = $context->getLocale()->getLanguageId(); |
45 | 45 | |
46 | - $view = $this->container->get('aimeos_view')->create( $context, array(), $langid ); |
|
47 | - $context->setView( $view ); |
|
46 | + $view = $this->container->get('aimeos_view')->create($context, array(), $langid); |
|
47 | + $context->setView($view); |
|
48 | 48 | |
49 | - $client = \Aimeos\Client\Html\Factory::createClient( $context, array(), 'account/download' ); |
|
50 | - $client->setView( $view ); |
|
49 | + $client = \Aimeos\Client\Html\Factory::createClient($context, array(), 'account/download'); |
|
50 | + $client->setView($view); |
|
51 | 51 | $client->process(); |
52 | 52 | |
53 | 53 | $response = $view->response(); |
54 | - return new Response( (string) $response->getBody(), $response->getStatusCode(), $response->getHeaders() ); |
|
54 | + return new Response((string) $response->getBody(), $response->getStatusCode(), $response->getHeaders()); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function favoriteComponentAction() |
64 | 64 | { |
65 | - return $this->getOutput( 'account/favorite' ); |
|
65 | + return $this->getOutput('account/favorite'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function historyComponentAction() |
75 | 75 | { |
76 | - return $this->getOutput( 'account/history' ); |
|
76 | + return $this->getOutput('account/history'); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function profileComponentAction() |
86 | 86 | { |
87 | - return $this->getOutput( 'account/profile' ); |
|
87 | + return $this->getOutput('account/profile'); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | |
@@ -95,6 +95,6 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function watchComponentAction() |
97 | 97 | { |
98 | - return $this->getOutput( 'account/watch' ); |
|
98 | + return $this->getOutput('account/watch'); |
|
99 | 99 | } |
100 | 100 | } |
@@ -10,69 +10,69 @@ |
||
10 | 10 | public function testAccount() |
11 | 11 | { |
12 | 12 | $client = static::createClient(); |
13 | - $client->request( 'GET', '/unittest/de/EUR/myaccount' ); |
|
13 | + $client->request('GET', '/unittest/de/EUR/myaccount'); |
|
14 | 14 | |
15 | - $this->assertContains( 'aimeos account-profile', $client->getResponse()->getContent() ); |
|
16 | - $this->assertContains( 'aimeos account-history', $client->getResponse()->getContent() ); |
|
17 | - $this->assertContains( 'aimeos account-favorite', $client->getResponse()->getContent() ); |
|
18 | - $this->assertContains( 'aimeos account-watch', $client->getResponse()->getContent() ); |
|
15 | + $this->assertContains('aimeos account-profile', $client->getResponse()->getContent()); |
|
16 | + $this->assertContains('aimeos account-history', $client->getResponse()->getContent()); |
|
17 | + $this->assertContains('aimeos account-favorite', $client->getResponse()->getContent()); |
|
18 | + $this->assertContains('aimeos account-watch', $client->getResponse()->getContent()); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | |
22 | 22 | public function testDownload() |
23 | 23 | { |
24 | 24 | $client = static::createClient(); |
25 | - $client->request( 'GET', '/unittest/de/EUR/myaccount/download/0' ); |
|
25 | + $client->request('GET', '/unittest/de/EUR/myaccount/download/0'); |
|
26 | 26 | |
27 | - $this->assertEquals( 401, $client->getResponse()->getStatusCode() ); |
|
27 | + $this->assertEquals(401, $client->getResponse()->getStatusCode()); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | 31 | public function testFavoriteComponent() |
32 | 32 | { |
33 | 33 | $client = static::createClient(); |
34 | - $client->request( 'GET', '/unittest/de/EUR/test/favoritecomponent' ); |
|
34 | + $client->request('GET', '/unittest/de/EUR/test/favoritecomponent'); |
|
35 | 35 | |
36 | - $this->assertEquals( 200, $client->getResponse()->getStatusCode() ); |
|
37 | - $this->assertContains( 'aimeos account-favorite', $client->getResponse()->getContent() ); |
|
36 | + $this->assertEquals(200, $client->getResponse()->getStatusCode()); |
|
37 | + $this->assertContains('aimeos account-favorite', $client->getResponse()->getContent()); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | |
41 | 41 | public function testHistoryComponent() |
42 | 42 | { |
43 | - $mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\AccountController' ) |
|
44 | - ->setMethods( array( 'getOutput' ) ) |
|
43 | + $mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\AccountController') |
|
44 | + ->setMethods(array('getOutput')) |
|
45 | 45 | ->disableOriginalConstructor() |
46 | 46 | ->getMock(); |
47 | 47 | |
48 | - $mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( 'test' ) ); |
|
48 | + $mock->expects($this->once())->method('getOutput')->will($this->returnValue('test')); |
|
49 | 49 | |
50 | - $this->assertEquals( 'test', $mock->historyComponentAction() ); |
|
50 | + $this->assertEquals('test', $mock->historyComponentAction()); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | |
54 | 54 | public function testProfileComponent() |
55 | 55 | { |
56 | - $mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\AccountController' ) |
|
57 | - ->setMethods( array( 'getOutput' ) ) |
|
56 | + $mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\AccountController') |
|
57 | + ->setMethods(array('getOutput')) |
|
58 | 58 | ->disableOriginalConstructor() |
59 | 59 | ->getMock(); |
60 | 60 | |
61 | - $mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( 'test' ) ); |
|
61 | + $mock->expects($this->once())->method('getOutput')->will($this->returnValue('test')); |
|
62 | 62 | |
63 | - $this->assertEquals( 'test', $mock->profileComponentAction() ); |
|
63 | + $this->assertEquals('test', $mock->profileComponentAction()); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | |
67 | 67 | public function testWatchComponent() |
68 | 68 | { |
69 | - $mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\AccountController' ) |
|
70 | - ->setMethods( array( 'getOutput' ) ) |
|
69 | + $mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\AccountController') |
|
70 | + ->setMethods(array('getOutput')) |
|
71 | 71 | ->disableOriginalConstructor() |
72 | 72 | ->getMock(); |
73 | 73 | |
74 | - $mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( 'test' ) ); |
|
74 | + $mock->expects($this->once())->method('getOutput')->will($this->returnValue('test')); |
|
75 | 75 | |
76 | - $this->assertEquals( 'test', $mock->watchComponentAction() ); |
|
76 | + $this->assertEquals('test', $mock->watchComponentAction()); |
|
77 | 77 | } |
78 | 78 | } |