Passed
Push — master ( 793370...b09d10 )
by Carsten
12:59
created
Core/test/CoreTest/Factory/Paginator/RepositoryAbstractFactoryTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     public function testCanCreateService($serviceName, $expected)
61 61
     {
62 62
         $sm = $this->getMockBuilder(AbstractPluginManager::class)
63
-	        ->disableOriginalConstructor()
64
-	        ->getMock()
63
+            ->disableOriginalConstructor()
64
+            ->getMock()
65 65
         ;
66 66
         $method = "assert" . ($expected ? 'True' : 'False');
67 67
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $qb->expects($this->once())->method('getQuery')->willReturn($q);
99 99
 
100 100
         $repositories = $this->getMockBuilder('\Core\Repository\RepositoryService')
101
-                             ->disableOriginalConstructor()->getMock();
101
+                                ->disableOriginalConstructor()->getMock();
102 102
 
103 103
         $repositories->expects($this->once())->method('createQueryBuilder')->willReturn($qb);
104 104
 
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
         $sm = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
119 119
 
120 120
         $sm->expects($this->exactly(2))->method('get')
121
-                                       ->withConsecutive([ 'repositories' ], [ 'FilterManager'])
122
-                                       ->will($this->onConsecutiveCalls($repositories, $filters));
121
+                                        ->withConsecutive([ 'repositories' ], [ 'FilterManager'])
122
+                                        ->will($this->onConsecutiveCalls($repositories, $filters));
123 123
 
124 124
         $target = $this->target;
125 125
         $paginator = $target($sm,$serviceName, $options);
Please login to merge, or discard this patch.
Factory/EventManager/EventManagerAbstractFactory/AttachListenersTest.php 1 patch
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
     public function setUp()
46 46
     {
47 47
         $this->target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
48
-                             ->setMethods([ 'createEventManager', 'getConfig' ])
49
-                             ->getMock();
48
+                                ->setMethods([ 'createEventManager', 'getConfig' ])
49
+                                ->getMock();
50 50
 
51 51
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')
52
-                       ->disableOriginalConstructor()
53
-                       ->setMethods(['attach'])
54
-                       ->getMock();
52
+                        ->disableOriginalConstructor()
53
+                        ->setMethods(['attach'])
54
+                        ->getMock();
55 55
 
56 56
         $this->target->expects($this->once())->method('createEventManager')->willReturn($events);
57 57
         $this->events = $events;
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
     protected function getServiceManagerMock($listeners, $expectLazyListeners = false)
68 68
     {
69 69
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
70
-                         ->disableOriginalConstructor()
71
-                         ->getMock();
70
+                            ->disableOriginalConstructor()
71
+                            ->getMock();
72 72
 
73 73
 
74 74
         $hasMap = [ ];
@@ -96,13 +96,13 @@  discard block
 block discarded – undo
96 96
         }
97 97
 
98 98
         $services->expects($this->atLeast(count($hasMap)))
99
-	        ->method('has')
100
-	        ->will($this->returnValueMap($hasMap))
99
+            ->method('has')
100
+            ->will($this->returnValueMap($hasMap))
101 101
         ;
102 102
 
103 103
         $services->expects($this->exactly(count($getMap)))
104
-                 ->method('get')
105
-                 ->will($this->returnValueMap($getMap))
104
+                    ->method('get')
105
+                    ->will($this->returnValueMap($getMap))
106 106
         ;
107 107
 
108 108
         return $services;
@@ -143,10 +143,10 @@  discard block
 block discarded – undo
143 143
     public function testCreatesListenersInstances()
144 144
     {
145 145
         $this->setTargetListenerConfig(
146
-        	['\CoreTest\Factory\EventManager\EventManagerAbstractFactory\AttachListenerTestListenerMock' => ['test-event','doSomething',1]]
146
+            ['\CoreTest\Factory\EventManager\EventManagerAbstractFactory\AttachListenerTestListenerMock' => ['test-event','doSomething',1]]
147 147
         );
148 148
         $services = $this->getServiceManagerMock([
149
-        	'\CoreTest\Factory\EventManager\EventManagerAbstractFactory\AttachListenerTestListenerMock' => false
149
+            '\CoreTest\Factory\EventManager\EventManagerAbstractFactory\AttachListenerTestListenerMock' => false
150 150
         ]);
151 151
 
152 152
         $this->target->createServiceWithName($services, 'irrelevant', 'irrelevant');
@@ -162,36 +162,36 @@  discard block
 block discarded – undo
162 162
         $this->target->createServiceWithName($services, 'irr', 'relevant');
163 163
     }
164 164
 	
165
-	public function testCallsAttachOnListenerAggregates()
166
-	{
167
-		$aggregateMock = $this->getMockBuilder('\Zend\EventManager\ListenerAggregateInterface')
168
-		                      ->getMockForAbstractClass();
169
-		$aggregateMock->expects($this->exactly(2))->method('attach')->withConsecutive([ $this->events, 1], [$this->events, -100]);
165
+    public function testCallsAttachOnListenerAggregates()
166
+    {
167
+        $aggregateMock = $this->getMockBuilder('\Zend\EventManager\ListenerAggregateInterface')
168
+                                ->getMockForAbstractClass();
169
+        $aggregateMock->expects($this->exactly(2))->method('attach')->withConsecutive([ $this->events, 1], [$this->events, -100]);
170 170
 		
171
-		$this->setTargetListenerConfig(['TestAggregate', 'TestAggregate2' => -100]);
172
-		$services = $this->getServiceManagerMock(['TestAggregate' => $aggregateMock, 'TestAggregate2' => $aggregateMock]);
171
+        $this->setTargetListenerConfig(['TestAggregate', 'TestAggregate2' => -100]);
172
+        $services = $this->getServiceManagerMock(['TestAggregate' => $aggregateMock, 'TestAggregate2' => $aggregateMock]);
173 173
 		
174
-		$this->target->createServiceWithName($services, 'no', 'no');
175
-	}
174
+        $this->target->createServiceWithName($services, 'no', 'no');
175
+    }
176 176
 
177 177
     public function testAttachsListenerToEventManager()
178 178
     {
179 179
         $listenerMock = new AttachListenerTestListenerMock();
180 180
         $this->setTargetListenerConfig([
181
-        	'TestListener1' => ['test-event1','doSomething',1],
182
-	        'TestListener2' => ['test-event2','doSomething',2]
181
+            'TestListener1' => ['test-event1','doSomething',1],
182
+            'TestListener2' => ['test-event2','doSomething',2]
183 183
         ]);
184 184
         $services = $this->getServiceManagerMock([
185
-        	'TestListener1' => $listenerMock,
186
-	        'TestListener2' => $listenerMock
185
+            'TestListener1' => $listenerMock,
186
+            'TestListener2' => $listenerMock
187 187
         ]);
188 188
         $this->events
189
-	        ->expects($this->exactly(2))
190
-	        ->method('attach')
191
-	        ->withConsecutive(
192
-	        	['test-event1', [$listenerMock,'doSomething'], 1 ],
193
-		        ['test-event2', [$listenerMock, 'doSomething'], 2 ]
194
-	        )
189
+            ->expects($this->exactly(2))
190
+            ->method('attach')
191
+            ->withConsecutive(
192
+                ['test-event1', [$listenerMock,'doSomething'], 1 ],
193
+                ['test-event2', [$listenerMock, 'doSomething'], 2 ]
194
+            )
195 195
         ;
196 196
 
197 197
         $this->target->createServiceWithName($services, '', '');
@@ -244,17 +244,17 @@  discard block
 block discarded – undo
244 244
 
245 245
         $lazyAggregateMock = $this->getLazyAggregateMock();
246 246
         $lazyAggregateMock->expects($this->once())
247
-			->method('setListeners')
247
+            ->method('setListeners')
248 248
             ->with($expectedLazyListeners)
249 249
             ->willReturnSelf()
250 250
         ;
251 251
 
252 252
         $this->setTargetListenerConfig($listeners);
253 253
         $services = $this->getServiceManagerMock($servicesCfg, true);
254
-		$expectedCallback = [$listenerMock,'doSomething'];
254
+        $expectedCallback = [$listenerMock,'doSomething'];
255 255
         $this->events->expects($this->exactly(16))
256
-			->method('attach')
257
-			->withConsecutive(
256
+            ->method('attach')
257
+            ->withConsecutive(
258 258
             [ $expectSingleEvent, $expectedCallback, 1 ],
259 259
             [ $expectSingleEvent, $expectedCallback, 1 ],
260 260
             [ 'event1', $expectedCallback, 1],
@@ -264,9 +264,9 @@  discard block
 block discarded – undo
264 264
             [ 'event2', $expectedCallback, 1],
265 265
             [ $expectSingleEvent, $expectedCallback, $priority],
266 266
             [ 'event1', $expectedCallback, $priority],
267
-	        [ 'event2', $expectedCallback, $priority],
267
+            [ 'event2', $expectedCallback, $priority],
268 268
             [ $expectSingleEvent, $expectedCallback, $priority ],
269
-	        [ 'event1', $expectedCallback, $priority ],
269
+            [ 'event1', $expectedCallback, $priority ],
270 270
             [ 'event2', $expectedCallback, $priority ],
271 271
             [ $expectSingleEvent, [$listenerMock,$additionalMethod], 1],
272 272
             [ 'event1', $expectedCallback, $additionalPriority ],
@@ -307,51 +307,51 @@  discard block
 block discarded – undo
307 307
             'Test17' => [ 'events' => $multiEvent, 'method' => 'multiMethod' ],
308 308
         ];
309 309
 	
310
-	    $servicesCfg = array_fill_keys([
311
-		    'Test01', 'Test02', 'Test03', 'Test04', 'Test05', 'Test06', 'Test07',
312
-		    'Test08', 'Test09', 'Test10', 'Test11', 'Test12', 'Test13', 'Test14',
313
-		    'Test15', 'Test17',
314
-	    ], $listenerMock);
310
+        $servicesCfg = array_fill_keys([
311
+            'Test01', 'Test02', 'Test03', 'Test04', 'Test05', 'Test06', 'Test07',
312
+            'Test08', 'Test09', 'Test10', 'Test11', 'Test12', 'Test13', 'Test14',
313
+            'Test15', 'Test17',
314
+        ], $listenerMock);
315 315
         $expectedLazyListeners = [
316 316
             [ 'service' => 'Test16', 'event' => $singleEvent[0], 'method' => null, 'priority' => 1 ],
317 317
         ];
318 318
 
319 319
         $lazyAggregateMock = $this->getLazyAggregateMock();
320 320
         $lazyAggregateMock
321
-	        ->expects($this->once())
322
-	        ->method('setListeners')
323
-	        ->with($expectedLazyListeners)
324
-	        ->willReturnSelf()
321
+            ->expects($this->once())
322
+            ->method('setListeners')
323
+            ->with($expectedLazyListeners)
324
+            ->willReturnSelf()
325 325
         ;
326 326
 
327 327
         $this->setTargetListenerConfig($listeners);
328 328
         $services = $this->getServiceManagerMock($servicesCfg, true);
329 329
 		
330 330
         $callback1 = [$listenerMock,'doSomething'];
331
-	    $callback2 = [$listenerMock,'doSomethingElse'];
331
+        $callback2 = [$listenerMock,'doSomethingElse'];
332 332
         $this->events
333
-	        ->expects($this->exactly(20))
334
-	        ->method('attach')
335
-	        ->withConsecutive(
336
-		        [ $singleEvent[0], $callback1, 1 ],
337
-		        [ 'prioEvent', $callback1, 10 ],
338
-		        [ 'methodEvent', $callback1, 1],
339
-		        [ $singleEvent[0], $callback1, 12],
340
-		        [ 'prioEvent', $callback1, 10],
341
-		        [ 'methodEvent', $callback1, 12],
342
-		        [ $singleEvent[0], $callback1, 1],
343
-		        [ 'prioEvent' , $callback1, 10],
344
-		        [ 'methodEvent', $callback1, 1],
345
-		        [ $singleEvent[0], $callback1, 12],
346
-		        [ 'prioEvent', $callback2, 10],
347
-		        [ 'methodEvent', $callback1, 12],
348
-		        [ 'single', $callback1, 1 ],
333
+            ->expects($this->exactly(20))
334
+            ->method('attach')
335
+            ->withConsecutive(
336
+                [ $singleEvent[0], $callback1, 1 ],
337
+                [ 'prioEvent', $callback1, 10 ],
338
+                [ 'methodEvent', $callback1, 1],
339
+                [ $singleEvent[0], $callback1, 12],
340
+                [ 'prioEvent', $callback1, 10],
341
+                [ 'methodEvent', $callback1, 12],
342
+                [ $singleEvent[0], $callback1, 1],
343
+                [ 'prioEvent' , $callback1, 10],
344
+                [ 'methodEvent', $callback1, 1],
345
+                [ $singleEvent[0], $callback1, 12],
346
+                [ 'prioEvent', $callback2, 10],
347
+                [ 'methodEvent', $callback1, 12],
348
+                [ 'single', $callback1, 1 ],
349 349
                 [ 'method' , $callback1, 1],
350
-		        [ 'priority', $callback1, 10],
351
-		        //[ [ 'method' ], $callback1, 1],
352
-		        [ 'verbose', $callback1, 20],
353
-		        [ 'verbose', $callback1, 30],
354
-		        [ 'verbose', $callback2, 25],
350
+                [ 'priority', $callback1, 10],
351
+                //[ [ 'method' ], $callback1, 1],
352
+                [ 'verbose', $callback1, 20],
353
+                [ 'verbose', $callback1, 30],
354
+                [ 'verbose', $callback2, 25],
355 355
                 [ 'multi1', [$listenerMock,'multiMethod'], 1],
356 356
                 [ 'multi2', [$listenerMock,'multiMethod'], 1]
357 357
             )
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 }
364 364
 
365 365
 class AttachListenerTestListenerMock {
366
-	public function doSomething(){}
367
-	public function doSomethingElse(){}
368
-	public function multiMethod(){}
366
+    public function doSomething(){}
367
+    public function doSomethingElse(){}
368
+    public function multiMethod(){}
369 369
 }
Please login to merge, or discard this patch.
EventManagerAbstractFactory/InheritanceAndConfigMergingTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $services = new ServiceManager();
46 46
         $this->assertTrue(
47
-             $this->target->canCreate(
47
+                $this->target->canCreate(
48 48
                 $services,'Any.string/Value/Events'
49
-             ),
50
-             'Checking correct name failed.'
49
+                ),
50
+                'Checking correct name failed.'
51 51
         );
52 52
         $this->assertFalse(
53
-             $this->target->canCreate(
53
+                $this->target->canCreate(
54 54
                 $services,'Any.string.not.ending/in/Events.but has it in the middle!'
55
-             ),
56
-             'Checking invalid name failed.'
55
+                ),
56
+                'Checking invalid name failed.'
57 57
         );
58 58
     }
59 59
 
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
 
95 95
         /* @var EventManagerAbstractFactory|\PHPUnit_Framework_MockObject_MockObject $target */
96 96
         $target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
97
-                       ->setMethods([ 'createEventManager', 'attachListeners' ])
98
-                       ->getMock();
97
+                        ->setMethods([ 'createEventManager', 'attachListeners' ])
98
+                        ->getMock();
99 99
 
100 100
         $services = new ServiceManager();
101 101
         $services->setService('Config', $config);
Please login to merge, or discard this patch.
Factory/EventManager/EventManagerAbstractFactory/CreateEventManagerTest.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     public function setUp()
40 40
     {
41 41
         $this->target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
42
-                             ->setMethods([ 'attachListeners', 'getConfig' ])
43
-                             ->getMock();
42
+                                ->setMethods([ 'attachListeners', 'getConfig' ])
43
+                                ->getMock();
44 44
 
45 45
     }
46 46
 
@@ -59,17 +59,17 @@  discard block
 block discarded – undo
59 59
             $config['event'] = '\Zend\EventManager\Event';
60 60
         }
61 61
         $this->target
62
-	        ->expects($this->once())
63
-	        ->method('getConfig')
64
-	        ->willReturn($config)
62
+            ->expects($this->once())
63
+            ->method('getConfig')
64
+            ->willReturn($config)
65 65
         ;
66 66
     }
67 67
 
68 68
     protected function getServiceManagerMock($events, $args = [])
69 69
     {
70 70
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
71
-                         ->disableOriginalConstructor()
72
-                         ->getMock();
71
+                            ->disableOriginalConstructor()
72
+                            ->getMock();
73 73
 
74 74
 
75 75
         if (is_Array($events)) {
@@ -96,11 +96,11 @@  discard block
 block discarded – undo
96 96
                  ->method('has')->will($this->returnValueMap($hasMap));
97 97
         */
98 98
         $services->expects($this->any())
99
-	        ->method('has')
100
-	        ->will($this->returnValueMap($hasMap))
99
+            ->method('has')
100
+            ->will($this->returnValueMap($hasMap))
101 101
         ;
102 102
         $services->expects($this->exactly(count($getMap)))
103
-                 ->method('get')->will($this->returnValueMap($getMap));
103
+                    ->method('get')->will($this->returnValueMap($getMap));
104 104
 
105 105
         return $services;
106 106
     }
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
 
131 131
     public function testThrowsExceptionIfNoEventManagerCanBeCreated()
132 132
     {
133
-    	$this->expectException(\UnexpectedValueException::class);
134
-    	$this->expectExceptionMessage('Cannot create');
133
+        $this->expectException(\UnexpectedValueException::class);
134
+        $this->expectExceptionMessage('Cannot create');
135 135
 
136 136
         $this->setTargetConfig(['service' => 'NonExistantClass' ]);
137 137
 
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
         $events = $this->getMockBuilder('\Core\EventManager\EventManager')->disableOriginalConstructor()
166 166
                         ->setMethods(['setIdentifiers', 'setEventPrototype'])->getMock();
167 167
         $events
168
-	        ->expects($this->once())
169
-	        ->method('setEventPrototype')
170
-	        ->with($event)
168
+            ->expects($this->once())
169
+            ->method('setEventPrototype')
170
+            ->with($event)
171 171
         ;
172 172
 
173 173
         $services = $this->getServiceManagerMock(['EventManager' => $events], [ 'Event' => $event ]);
@@ -179,14 +179,14 @@  discard block
 block discarded – undo
179 179
     {
180 180
         $event = new \Zend\EventManager\Event();
181 181
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')
182
-                       ->disableOriginalConstructor()
183
-                       ->setMethods(['setIdentifiers', 'setEventPrototype'])
184
-                       ->getMock()
182
+                        ->disableOriginalConstructor()
183
+                        ->setMethods(['setIdentifiers', 'setEventPrototype'])
184
+                        ->getMock()
185 185
         ;
186 186
         $events
187
-	        ->expects($this->once())
188
-	        ->method('setEventPrototype')
189
-	        ->with($this->isInstanceOf(Event::class))
187
+            ->expects($this->once())
188
+            ->method('setEventPrototype')
189
+            ->with($this->isInstanceOf(Event::class))
190 190
         ;
191 191
 
192 192
         $services = $this->getServiceManagerMock(['EventManager' => $events]);
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/CreatePaginatorTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -92,13 +92,13 @@
 block discarded – undo
92 92
             ->disableOriginalConstructor()
93 93
             ->getMock()
94 94
         ;
95
-	    $container = $this->getMockBuilder(ContainerInterface::class)
96
-	                      ->getMock();
97
-	    $container->expects($this->once())
98
-		    ->method('get')
99
-		    ->with('ServiceManager')
100
-		    ->willReturn($sm)
101
-		;
95
+        $container = $this->getMockBuilder(ContainerInterface::class)
96
+                            ->getMock();
97
+        $container->expects($this->once())
98
+            ->method('get')
99
+            ->with('ServiceManager')
100
+            ->willReturn($sm)
101
+        ;
102 102
 		    
103 103
         $em = $this->getMockBuilder(EventManager::class)
104 104
             ->disableOriginalConstructor()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/SearchFormTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
  */
32 32
 class SearchFormTest extends \PHPUnit_Framework_TestCase
33 33
 {
34
-	use TestInheritanceTrait;
34
+    use TestInheritanceTrait;
35 35
 	
36 36
     protected $formElementManagerMock;
37 37
 
@@ -127,14 +127,14 @@  discard block
 block discarded – undo
127 127
 
128 128
         $formData = ['data' => 'value'];
129 129
         $hydrator = $this->getMockBuilder(HydratorInterface::class)
130
-                         ->setMethods(['hydrate', 'extract'])
131
-                         ->getMockForAbstractClass();
130
+                            ->setMethods(['hydrate', 'extract'])
131
+                            ->getMockForAbstractClass();
132 132
         $hydrator->expects($this->once())->method('extract')->with($this->isInstanceOf(Parameters::class))->willReturn($formData);
133 133
         $hydrator->expects($this->once())->method('hydrate')->with($formData, $this->isInstanceOf(Parameters::class));
134 134
 
135 135
         $form = $this->getMockBuilder(Form::class)
136
-                     ->setMethods(['getHydrator', 'setData'])
137
-                     ->getMock();
136
+                        ->setMethods(['getHydrator', 'setData'])
137
+                        ->getMock();
138 138
         $form->expects($this->once())->method('gethydrator')->willReturn($hydrator);
139 139
         $form->expects($this->once())->method('setData')->with($formData);
140 140
         $this->formElementManagerMock
Please login to merge, or discard this patch.
Core/test/CoreTest/Controller/Plugin/PaginationBuilder/GetResultTest.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
         $this->pluginMock = $pluginMock;
46 46
 
47 47
         $controller = $this->getMockBuilder('\Zend\Mvc\Controller\AbstractController')
48
-                           ->setMethods(['getRequest', 'plugin'])
49
-                           ->getMockForAbstractClass();
48
+                            ->setMethods(['getRequest', 'plugin'])
49
+                            ->getMockForAbstractClass();
50 50
 
51 51
         $controller->expects($this->any())->method('getRequest')->willReturn($this->request);
52 52
         $controller->expects($this->any())->method('plugin')->will($this->returnValueMap(
53
-                                                                       [
54
-                                                                           ['paginator', null, $pluginMock],
55
-                                                                           ['paginationParams', null, $pluginMock],
56
-                                                                           ['searchform', null, $pluginMock],
57
-                                                                       ]
58
-                                                                   ));
53
+                                                                        [
54
+                                                                            ['paginator', null, $pluginMock],
55
+                                                                            ['paginationParams', null, $pluginMock],
56
+                                                                            ['searchform', null, $pluginMock],
57
+                                                                        ]
58
+                                                                    ));
59 59
 
60 60
         $this->target->setController($controller);
61 61
 
@@ -117,12 +117,12 @@  discard block
 block discarded – undo
117 117
         $actual = $query->toArray();
118 118
 
119 119
         $this->assertAttributeEquals(
120
-             new Parameters([
121
-                 'a' => 'test', 'b' => ['test1', 'test2'],
122
-                 'c' => ['test1', 'test2'],
123
-                 'd' => ['test1' => 1, 'test2' => 1]
124
-             ]),
125
-             'parameters', $this->target);
120
+                new Parameters([
121
+                    'a' => 'test', 'b' => ['test1', 'test2'],
122
+                    'c' => ['test1', 'test2'],
123
+                    'd' => ['test1' => 1, 'test2' => 1]
124
+                ]),
125
+                'parameters', $this->target);
126 126
     }
127 127
 }
128 128
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/AdminControllerTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function setUp()
44 44
     {
45
-	    $events = $this->getMockBuilder(EventManager::class)
46
-	                   ->setMethods(['getEvent', 'trigger'])
47
-	                   ->getMock();
48
-	    $this->target = new AdminController($events);
45
+        $events = $this->getMockBuilder(EventManager::class)
46
+                        ->setMethods(['getEvent', 'trigger'])
47
+                        ->getMock();
48
+        $this->target = new AdminController($events);
49 49
     }
50 50
 
51 51
     public function testIndexAction()
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
         $events = $this->getMockBuilder(EventManager::class)
54 54
             ->setMethods(['getEvent', 'trigger'])
55 55
             ->getMock();
56
-	    $target = new AdminController($events);
57
-	    $event = new AdminControllerEvent(AdminControllerEvent::EVENT_DASHBOARD, $target);
58
-	    $event->addViewVariables('test', ['testVar' => 'value']);
56
+        $target = new AdminController($events);
57
+        $event = new AdminControllerEvent(AdminControllerEvent::EVENT_DASHBOARD, $target);
58
+        $event->addViewVariables('test', ['testVar' => 'value']);
59 59
         $events->expects($this->once())->method('getEvent')
60 60
             ->with(AdminControllerEvent::EVENT_DASHBOARD, $this->identicalTo($target))
61 61
             ->willReturn($event);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         //                                                 'service' => $events,
69 69
         //                                                 'count_get' => 1,
70 70
         //                                             ]
71
-		//
71
+        //
72 72
         //                                          ]);
73 73
 
74 74
         /* @var \Zend\View\Model\ViewModel $child
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/TranslatorAwareMessageTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     public function testSetSubjectDoesNotTranslate()
95 95
     {
96 96
         $translator = $this->getMockBuilder(Translator::class)->disableOriginalConstructor()
97
-                           ->setMethods(['translate'])->getMock();
97
+                            ->setMethods(['translate'])->getMock();
98 98
         $translator->expects($this->never())->method('translate');
99 99
 
100 100
         $this->target->setTranslator($translator);
Please login to merge, or discard this patch.