Completed
Push — develop ( 33eed9...a73e2c )
by Carsten
21s queued 14s
created
Core/test/CoreTest/Controller/Plugin/PaginationBuilder/GetResultTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -47,17 +47,17 @@  discard block
 block discarded – undo
47 47
         $this->pluginMock = $pluginMock;
48 48
 
49 49
         $controller = $this->getMockBuilder('\Zend\Mvc\Controller\AbstractController')
50
-                           ->setMethods(['getRequest', 'plugin'])
51
-                           ->getMockForAbstractClass();
50
+                            ->setMethods(['getRequest', 'plugin'])
51
+                            ->getMockForAbstractClass();
52 52
 
53 53
         $controller->expects($this->any())->method('getRequest')->willReturn($this->request);
54 54
         $controller->expects($this->any())->method('plugin')->will($this->returnValueMap(
55 55
             [
56
-                                                                           ['paginator', null, $pluginMock],
57
-                                                                           ['paginationParams', null, $pluginMock],
58
-                                                                           ['searchform', null, $pluginMock],
59
-                                                                       ]
60
-                                                                   ));
56
+                                                                            ['paginator', null, $pluginMock],
57
+                                                                            ['paginationParams', null, $pluginMock],
58
+                                                                            ['searchform', null, $pluginMock],
59
+                                                                        ]
60
+                                                                    ));
61 61
 
62 62
         $this->target->setController($controller);
63 63
     }
@@ -117,10 +117,10 @@  discard block
 block discarded – undo
117 117
 
118 118
         $this->assertAttributeEquals(
119 119
             new Parameters([
120
-                 'a' => 'test', 'b' => ['test1', 'test2'],
121
-                 'c' => ['test1', 'test2'],
122
-                 'd' => ['test1' => 1, 'test2' => 1]
123
-             ]),
120
+                    'a' => 'test', 'b' => ['test1', 'test2'],
121
+                    'c' => ['test1', 'test2'],
122
+                    'd' => ['test1' => 1, 'test2' => 1]
123
+                ]),
124 124
             'parameters',
125 125
             $this->target
126 126
         );
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/CreatePaginatorTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             ->getMock()
99 99
         ;
100 100
         $container = $this->getMockBuilder(ContainerInterface::class)
101
-                          ->getMock();
101
+                            ->getMock();
102 102
         $container->expects($this->once())
103 103
             ->method('get')
104 104
             ->with('ServiceManager')
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/SearchFormTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,14 +126,14 @@
 block discarded – undo
126 126
 
127 127
         $formData = ['data' => 'value'];
128 128
         $hydrator = $this->getMockBuilder(HydratorInterface::class)
129
-                         ->setMethods(['hydrate', 'extract'])
130
-                         ->getMockForAbstractClass();
129
+                            ->setMethods(['hydrate', 'extract'])
130
+                            ->getMockForAbstractClass();
131 131
         $hydrator->expects($this->once())->method('extract')->with($this->isInstanceOf(Parameters::class))->willReturn($formData);
132 132
         $hydrator->expects($this->once())->method('hydrate')->with($formData, $this->isInstanceOf(Parameters::class));
133 133
 
134 134
         $form = $this->getMockBuilder(Form::class)
135
-                     ->setMethods(['getHydrator', 'setData'])
136
-                     ->getMock();
135
+                        ->setMethods(['getHydrator', 'setData'])
136
+                        ->getMock();
137 137
         $form->expects($this->once())->method('gethydrator')->willReturn($hydrator);
138 138
         $form->expects($this->once())->method('setData')->with($formData);
139 139
         $this->formElementManagerMock
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/AdminControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
     protected function setUp()
45 45
     {
46 46
         $events = $this->getMockBuilder(EventManager::class)
47
-                       ->setMethods(['getEvent', 'trigger'])
48
-                       ->getMock();
47
+                        ->setMethods(['getEvent', 'trigger'])
48
+                        ->getMock();
49 49
         $this->target = new AdminController($events);
50 50
     }
51 51
 
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
@@ -47,16 +47,16 @@  discard block
 block discarded – undo
47 47
         $services = new ServiceManager();
48 48
         $this->assertTrue(
49 49
             $this->target->canCreate(
50
-                 $services,
51
-                 'Any.string/Value/Events'
52
-             ),
50
+                    $services,
51
+                    'Any.string/Value/Events'
52
+                ),
53 53
             'Checking correct name failed.'
54 54
         );
55 55
         $this->assertFalse(
56 56
             $this->target->canCreate(
57
-                 $services,
58
-                 'Any.string.not.ending/in/Events.but has it in the middle!'
59
-             ),
57
+                    $services,
58
+                    'Any.string.not.ending/in/Events.but has it in the middle!'
59
+                ),
60 60
             'Checking invalid name failed.'
61 61
         );
62 62
     }
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
 
99 99
         /* @var EventManagerAbstractFactory|\PHPUnit_Framework_MockObject_MockObject $target */
100 100
         $target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
101
-                       ->setMethods([ 'createEventManager', 'attachListeners' ])
102
-                       ->getMock();
101
+                        ->setMethods([ 'createEventManager', 'attachListeners' ])
102
+                        ->getMock();
103 103
 
104 104
         $services = new ServiceManager();
105 105
         $services->setService('Config', $config);
Please login to merge, or discard this patch.
Factory/EventManager/EventManagerAbstractFactory/CreateEventManagerTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     protected function setUp()
42 42
     {
43 43
         $this->target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
44
-                             ->setMethods([ 'attachListeners', 'getConfig' ])
45
-                             ->getMock();
44
+                                ->setMethods([ 'attachListeners', 'getConfig' ])
45
+                                ->getMock();
46 46
     }
47 47
 
48 48
     protected function setTargetConfig($config)
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected function getServiceManagerMock($events, $args = [])
70 70
     {
71 71
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
72
-                         ->disableOriginalConstructor()
73
-                         ->getMock();
72
+                            ->disableOriginalConstructor()
73
+                            ->getMock();
74 74
 
75 75
 
76 76
         if (is_Array($events)) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             ->will($this->returnValueMap($hasMap))
102 102
         ;
103 103
         $services->expects($this->exactly(count($getMap)))
104
-                 ->method('get')->will($this->returnValueMap($getMap));
104
+                    ->method('get')->will($this->returnValueMap($getMap));
105 105
 
106 106
         return $services;
107 107
     }
@@ -179,9 +179,9 @@  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 187
             ->expects($this->once())
Please login to merge, or discard this patch.
Factory/EventManager/EventManagerAbstractFactory/AttachListenersTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
     protected function setUp()
47 47
     {
48 48
         $this->target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
49
-                             ->setMethods([ 'createEventManager', 'getConfig' ])
50
-                             ->getMock();
49
+                                ->setMethods([ 'createEventManager', 'getConfig' ])
50
+                                ->getMock();
51 51
 
52 52
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')
53
-                       ->disableOriginalConstructor()
54
-                       ->setMethods(['attach'])
55
-                       ->getMock();
53
+                        ->disableOriginalConstructor()
54
+                        ->setMethods(['attach'])
55
+                        ->getMock();
56 56
 
57 57
         $this->target->expects($this->once())->method('createEventManager')->willReturn($events);
58 58
         $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 = [ ];
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
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;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     public function testCallsAttachOnListenerAggregates()
167 167
     {
168 168
         $aggregateMock = $this->getMockBuilder('\Zend\EventManager\ListenerAggregateInterface')
169
-                              ->getMockForAbstractClass();
169
+                                ->getMockForAbstractClass();
170 170
         $aggregateMock->expects($this->exactly(2))->method('attach')->withConsecutive([ $this->events, 1], [$this->events, -100]);
171 171
         
172 172
         $this->setTargetListenerConfig(['TestAggregate', 'TestAggregate2' => -100]);
Please login to merge, or discard this patch.
Core/test/CoreTest/Factory/Paginator/RepositoryAbstractFactoryTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $qb->expects($this->once())->method('getQuery')->willReturn($q);
101 101
 
102 102
         $repositories = $this->getMockBuilder('\Core\Repository\RepositoryService')
103
-                             ->disableOriginalConstructor()->getMock();
103
+                                ->disableOriginalConstructor()->getMock();
104 104
 
105 105
         $repositories->expects($this->once())->method('createQueryBuilder')->willReturn($qb);
106 106
 
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
         $sm = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
121 121
 
122 122
         $sm->expects($this->exactly(2))->method('get')
123
-                                       ->withConsecutive([ 'repositories' ], [ 'FilterManager'])
124
-                                       ->will($this->onConsecutiveCalls($repositories, $filters));
123
+                                        ->withConsecutive([ 'repositories' ], [ 'FilterManager'])
124
+                                        ->will($this->onConsecutiveCalls($repositories, $filters));
125 125
 
126 126
         $target = $this->target;
127 127
         $paginator = $target($sm, $serviceName, $options);
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/MailService/BaseTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,12 +84,12 @@
 block discarded – undo
84 84
         ));
85 85
 
86 86
         $translator = $this->getMockBuilder('\Zend\I18n\Translator\Translator')
87
-                           ->disableOriginalConstructor()
88
-                           ->getMock();
87
+                            ->disableOriginalConstructor()
88
+                            ->getMock();
89 89
 
90 90
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
91
-                         ->disableOriginalConstructor()
92
-                         ->getMock();
91
+                            ->disableOriginalConstructor()
92
+                            ->getMock();
93 93
         
94 94
 
95 95
         $services
Please login to merge, or discard this patch.