Completed
Push — master ( 4c14c6...4ad177 )
by Mathias
25s queued 15s
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('\Laminas\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/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('\Laminas\I18n\Translator\Translator')
87
-                           ->disableOriginalConstructor()
88
-                           ->getMock();
87
+                            ->disableOriginalConstructor()
88
+                            ->getMock();
89 89
 
90 90
         $services = $this->getMockBuilder('\Laminas\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.
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(): void
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('\Laminas\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 \Laminas\EventManager\Event();
181 181
         $events = $this->getMockBuilder('\Laminas\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(): void
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('\Laminas\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('\Laminas\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('\Laminas\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('\Laminas\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/Form/Service/InjectHeadscriptInitializerTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
         $this->formElementManagerMock->expects($this->never())->method('getServiceLocator');
86 86
         $instance = $this->getMockForAbstractClass('\Core\Form\HeadscriptProviderInterface');
87 87
         $instance->expects($this->exactly(2))
88
-                 ->method('getHeadscripts')
89
-                 ->will($this->onConsecutiveCalls('notanarray', array()));
88
+                    ->method('getHeadscripts')
89
+                    ->will($this->onConsecutiveCalls('notanarray', array()));
90 90
 
91 91
         $this->target->initialize($instance, $this->formElementManagerMock);
92 92
         $this->target->initialize($instance, $this->formElementManagerMock);
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
     public function testInjectsScriptsToTheHeadscriptViewHelper()
96 96
     {
97 97
         $basepath = $this->getMockBuilder('\Laminas\View\Helper\BasePath')
98
-                         ->disableOriginalConstructor()->getMock();
98
+                            ->disableOriginalConstructor()->getMock();
99 99
 
100 100
         $basepath->expects($this->any())
101
-                 ->method('__invoke')->will($this->returnArgument(0));
101
+                    ->method('__invoke')->will($this->returnArgument(0));
102 102
 
103 103
 
104 104
         $headscript = $this->getMockBuilder('\Laminas\View\Helper\HeadScript')
105
-                           ->disableOriginalConstructor()->getMock();
105
+                            ->disableOriginalConstructor()->getMock();
106 106
 
107 107
         $scripts = array('test/script.js', 'yetanother/test/script.tst');
108 108
 
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
         $this->instanceMock = $instance;
112 112
 
113 113
         $headscript->expects($this->exactly(2))
114
-                   ->method('__call')->withConsecutive(
115
-                       array('appendFile', array($scripts[0])),
116
-                       array('appendFile', array($scripts[1]))
114
+                    ->method('__call')->withConsecutive(
115
+                        array('appendFile', array($scripts[0])),
116
+                        array('appendFile', array($scripts[1]))
117 117
             );
118 118
 
119 119
         $helpers = $this->getMockBuilder('\Laminas\View\HelperPluginManager')
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
         $services = $this->formElementManagerMock;
129 129
 
130 130
         $services->expects($this->exactly(1))
131
-                 ->method('get')
132
-                 ->with('ViewHelperManager')
133
-                 ->willReturn($helpers)
131
+                    ->method('get')
132
+                    ->with('ViewHelperManager')
133
+                    ->willReturn($helpers)
134 134
         ;
135 135
 
136 136
         $this->target->initialize($instance, $services);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/MailSenderTest.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
             default:
63 63
                 $this->mailServiceMock = $this->getMockBuilder('\Core\Mail\MailService')->disableOriginalConstructor()->getMock();
64 64
                 $this->mailServiceMock->expects($this->atLeastOnce())
65
-                                      ->method('send')
66
-                                      ->with($this->isInstanceOf(HTMLTemplateMessage::class))
65
+                                        ->method('send')
66
+                                        ->with($this->isInstanceOf(HTMLTemplateMessage::class))
67 67
                 ;
68 68
                 $this->mailServiceMock->expects($this->any())
69
-                                      ->method('get')->with('htmltemplate')
70
-                                      ->will($this->returnCallback(array($this, 'pushMailMock')));
69
+                                        ->method('get')->with('htmltemplate')
70
+                                        ->will($this->returnCallback(array($this, 'pushMailMock')));
71 71
 
72 72
 
73 73
                 $this->targetOptions = array('siteName' => 'Test', 'adminEmail' => 'test@admin');
@@ -106,29 +106,29 @@  discard block
 block discarded – undo
106 106
     public function testAttachsToAndDetachsFromJobEvents()
107 107
     {
108 108
         $events = $this->getMockBuilder('\Laminas\EventManager\EventManager')
109
-                       ->disableOriginalConstructor()
110
-                       ->getMock();
109
+                        ->disableOriginalConstructor()
110
+                        ->getMock();
111 111
 
112 112
         $callback1 = [new MailSenderListenerMock(),'listen1'];
113 113
         $callback2 = [new MailSenderListenerMock(),'listen2'];
114 114
         $callback3 = [new MailSenderListenerMock(),'listen3'];
115 115
         $events->expects($this->exactly(3))
116
-               ->method('attach')
117
-               ->withConsecutive(
118
-                   array(JobEvent::EVENT_JOB_CREATED, array($this->target, 'onJobCreated')),
119
-                   array(JobEvent::EVENT_JOB_ACCEPTED, array($this->target, 'onJobAccepted')),
120
-                   array(JobEvent::EVENT_JOB_REJECTED, array($this->target, 'onJobRejected'))
121
-               )
122
-               ->will($this->onConsecutiveCalls($callback1, $callback2, $callback3))
116
+                ->method('attach')
117
+                ->withConsecutive(
118
+                    array(JobEvent::EVENT_JOB_CREATED, array($this->target, 'onJobCreated')),
119
+                    array(JobEvent::EVENT_JOB_ACCEPTED, array($this->target, 'onJobAccepted')),
120
+                    array(JobEvent::EVENT_JOB_REJECTED, array($this->target, 'onJobRejected'))
121
+                )
122
+                ->will($this->onConsecutiveCalls($callback1, $callback2, $callback3))
123 123
         ;
124 124
 
125 125
         $events->expects($this->exactly(3))
126
-               ->method('detach')
127
-               ->withConsecutive(
128
-                   array($callback1),
129
-                   array($callback2),
130
-                   array($callback3)
131
-               )->willReturn(true);
126
+                ->method('detach')
127
+                ->withConsecutive(
128
+                    array($callback1),
129
+                    array($callback2),
130
+                    array($callback3)
131
+                )->willReturn(true);
132 132
 
133 133
         $this->target->attach($events);
134 134
         $this->assertAttributeEquals(array($callback1, $callback2, $callback3), 'listeners', $this->target);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/PublisherTest.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -131,62 +131,62 @@  discard block
 block discarded – undo
131 131
                 ->will($this->returnValue('<html />'));
132 132
 
133 133
         $this->viewPhpRendererStrategy = $this->getMockBuilder('\Laminas\View\Strategy\PhpRendererStrategy')
134
-                          ->disableOriginalConstructor()
135
-                          ->getMock();
134
+                            ->disableOriginalConstructor()
135
+                            ->getMock();
136 136
 
137 137
         $this->viewPhpRendererStrategy->expects($this->once())
138
-                          ->method('getRenderer')
139
-                          ->will($this->returnValue($this->renderer));
138
+                            ->method('getRenderer')
139
+                            ->will($this->returnValue($this->renderer));
140 140
 
141 141
         $this->response = $this->getMockBuilder('\Laminas\Http\Response')
142
-                                              ->disableOriginalConstructor()
143
-                                              ->getMock();
142
+                                                ->disableOriginalConstructor()
143
+                                                ->getMock();
144 144
 
145 145
         $this->jobEvent = $this->getMockBuilder('\Jobs\Listener\Events\JobEvent')
146
-                               ->disableOriginalConstructor()
147
-                               ->getMock();
146
+                                ->disableOriginalConstructor()
147
+                                ->getMock();
148 148
 
149 149
         $this->job = $this->getMockBuilder('\Jobs\Entity\Job')
150
-                          ->disableOriginalConstructor()
151
-                          ->getMock();
150
+                            ->disableOriginalConstructor()
151
+                            ->getMock();
152 152
 
153 153
         $this->publisher = $this->getMockBuilder('\Jobs\Entity\Publisher')
154
-                          ->disableOriginalConstructor()
155
-                          ->getMock();
154
+                            ->disableOriginalConstructor()
155
+                            ->getMock();
156 156
 
157 157
         $this->publisher->expects($this->at(0))
158
-                           ->method('__get')
159
-                           ->with('externalId')
160
-                           ->will($this->returnValue('externalId32'));
158
+                            ->method('__get')
159
+                            ->with('externalId')
160
+                            ->will($this->returnValue('externalId32'));
161 161
 
162 162
         $this->publisher->expects($this->at(1))
163
-                           ->method('__get')
164
-                           ->with('reference')
165
-                           ->will($this->returnValue('reference32'));
163
+                            ->method('__get')
164
+                            ->with('reference')
165
+                            ->will($this->returnValue('reference32'));
166 166
 
167 167
         $this->publisher->expects($this->any())
168
-                              ->method('__set')
169
-                              ->will($this->returnCallback($staticClassPrefix . 'publisherSetter'));
168
+                                ->method('__set')
169
+                                ->will($this->returnCallback($staticClassPrefix . 'publisherSetter'));
170 170
 
171 171
         $this->htmlAbsPathFilter = $this->getMockBuilder('\Core\Filter\HtmlAbsPathFilter')
172 172
                                     ->disableOriginalConstructor()
173 173
                                     ->getMock();
174 174
 
175 175
         $this->htmlAbsPathFilter->expects($this->any())
176
-                              ->method('filter')
177
-                              ->will($this->returnCallback($staticClassPrefix . 'absPathFilter'));
176
+                                ->method('filter')
177
+                                ->will($this->returnCallback($staticClassPrefix . 'absPathFilter'));
178 178
 
179 179
         $this->filterManager = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
180
-                                     ->disableOriginalConstructor()
181
-                                     ->getMock();
180
+                                        ->disableOriginalConstructor()
181
+                                        ->getMock();
182 182
 
183 183
         $this->filterManager->expects($this->at(0))
184 184
                         ->method('get')
185 185
                         ->willReturn($this->htmlAbsPathFilter);
186 186
 
187 187
         $this->restClient = $this->getMockBuilder('\Core\Service\RestClient')
188
-                                 ->disableOriginalConstructor()
189
-                                 ->getMock();
188
+                                    ->disableOriginalConstructor()
189
+                                    ->getMock();
190 190
 
191 191
         //$this->restClient->expects($this->at(0))
192 192
         //                   ->method('getHost')
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
             ->will($this->returnValue($this->response));
203 203
 
204 204
         $this->organization = $this->getMockBuilder('\Organizations\Entity\Organization')
205
-                                 ->disableOriginalConstructor()
206
-                                 ->getMock();
205
+                                    ->disableOriginalConstructor()
206
+                                    ->getMock();
207 207
 
208 208
         $this->organization->expects($this->at(0))
209 209
                         ->method('__get')
@@ -211,21 +211,21 @@  discard block
 block discarded – undo
211 211
                         ->will($this->returnValue('name32'));
212 212
 
213 213
         $this->provider = $this->getMockBuilder('\Jobs\Options\ProviderOptions')
214
-                                   ->disableOriginalConstructor()
215
-                                   ->getMock();
214
+                                    ->disableOriginalConstructor()
215
+                                    ->getMock();
216 216
 
217 217
         $this->providerChannel = $this->getMockBuilder('\Jobs\Options\ChannelOptions')
218
-                                      ->disableOriginalConstructor()
219
-                                      ->getMock();
218
+                                        ->disableOriginalConstructor()
219
+                                        ->getMock();
220 220
 
221 221
         $this->providerChannel->expects($this->any())
222
-                              ->method('__get')
223
-                              ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter'));
222
+                                ->method('__get')
223
+                                ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter'));
224 224
 
225 225
         $this->provider->expects($this->any(0))
226
-                       ->method('__get')
227
-                       ->with('channels')
228
-                       ->willReturn(array('bbb value' => $this->providerChannel));
226
+                        ->method('__get')
227
+                        ->with('channels')
228
+                        ->willReturn(array('bbb value' => $this->providerChannel));
229 229
 
230 230
         $this->viewModel = $this->getMockBuilder('\Laminas\View\Model\ViewModel')
231 231
                                 ->disableOriginalConstructor()
@@ -306,13 +306,13 @@  discard block
 block discarded – undo
306 306
     protected function setRestReturn($referenceUpdate, $applyIdUpdate)
307 307
     {
308 308
         $this->response->expects($this->any())
309
-                       ->method('getBody')
310
-                       ->will($this->returnValue(json_encode(
311
-                           array(
312
-                               'referenceUpdate' => $referenceUpdate,
313
-                               'applyIdUpdate' => $applyIdUpdate
314
-                           )
315
-                       )));
309
+                        ->method('getBody')
310
+                        ->will($this->returnValue(json_encode(
311
+                            array(
312
+                                'referenceUpdate' => $referenceUpdate,
313
+                                'applyIdUpdate' => $applyIdUpdate
314
+                            )
315
+                        )));
316 316
     }
317 317
 
318 318
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/JobEventManagerFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
         $expectedIdentifiers = array('Jobs', 'Jobs/Events');
50 50
         $eventManager = new EventManager();
51 51
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
52
-                         ->disableOriginalConstructor()
53
-                         ->getMock();
52
+                            ->disableOriginalConstructor()
53
+                            ->getMock();
54 54
 
55 55
         $services->expects($this->once())->method('get')->with('EventManager')->willReturn($eventManager);
56 56
 
Please login to merge, or discard this patch.