@@ -62,12 +62,12 @@ discard block |
||
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 |
||
106 | 106 | public function testAttachsToAndDetachsFromJobEvents() |
107 | 107 | { |
108 | 108 | $events = $this->getMockBuilder('\Zend\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); |
@@ -131,62 +131,62 @@ discard block |
||
131 | 131 | ->will($this->returnValue('<html />')); |
132 | 132 | |
133 | 133 | $this->viewPhpRendererStrategy = $this->getMockBuilder('\Zend\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('\Zend\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('\Zend\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 |
||
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 |
||
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('\Zend\View\Model\ViewModel') |
231 | 231 | ->disableOriginalConstructor() |
@@ -306,13 +306,13 @@ discard block |
||
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 |
@@ -93,9 +93,9 @@ discard block |
||
93 | 93 | |
94 | 94 | |
95 | 95 | /** |
96 | - * @covers \Jobs\Entity\History::setDate |
|
97 | - * @covers \Jobs\Entity\History::getDate |
|
98 | - */ |
|
96 | + * @covers \Jobs\Entity\History::setDate |
|
97 | + * @covers \Jobs\Entity\History::getDate |
|
98 | + */ |
|
99 | 99 | public function testSetGetDate() |
100 | 100 | { |
101 | 101 | $date=new \DateTime("2017-02-28 11:11:11"); |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * @covers \Jobs\Entity\History::setMessage |
|
109 | - * @covers \Jobs\Entity\History::getMessage |
|
110 | - */ |
|
108 | + * @covers \Jobs\Entity\History::setMessage |
|
109 | + * @covers \Jobs\Entity\History::getMessage |
|
110 | + */ |
|
111 | 111 | public function testSetGetMessage() |
112 | 112 | { |
113 | 113 | $message="my message"; |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
120 | - * @covers \Jobs\Entity\History::setStatus |
|
121 | - * @covers \Jobs\Entity\History::getStatus |
|
122 | - */ |
|
120 | + * @covers \Jobs\Entity\History::setStatus |
|
121 | + * @covers \Jobs\Entity\History::getStatus |
|
122 | + */ |
|
123 | 123 | public function testSetGetStatus() |
124 | 124 | { |
125 | 125 | $status=new Status(Status::CREATED); |
@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | public function testInitialization() |
85 | 85 | { |
86 | 86 | $target = $this->getMockBuilder('\Jobs\Form\AtsModeFieldset') |
87 | - ->disableOriginalConstructor() |
|
88 | - ->setMethods(array('add', 'setName')) |
|
89 | - ->getMock(); |
|
87 | + ->disableOriginalConstructor() |
|
88 | + ->setMethods(array('add', 'setName')) |
|
89 | + ->getMock(); |
|
90 | 90 | |
91 | 91 | $target->expects($this->once())->method('setName')->with('atsMode'); |
92 | 92 | |
@@ -152,12 +152,12 @@ discard block |
||
152 | 152 | ]; |
153 | 153 | |
154 | 154 | $target->expects($this->exactly(5))->method('add') |
155 | - ->withConsecutive( |
|
156 | - array($addSelect), |
|
157 | - array($addUri), |
|
158 | - array($addEmail), |
|
159 | - array($addOneClickApply), |
|
160 | - array($addOneClickApplyProfiles) |
|
155 | + ->withConsecutive( |
|
156 | + array($addSelect), |
|
157 | + array($addUri), |
|
158 | + array($addEmail), |
|
159 | + array($addOneClickApply), |
|
160 | + array($addOneClickApplyProfiles) |
|
161 | 161 | ); |
162 | 162 | |
163 | 163 | $target->init(); |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | protected function setUp() |
35 | 35 | { |
36 | 36 | $this->target = $this->getMockBuilder('\Jobs\Form\CompanyNameFieldset') |
37 | - ->disableOriginalConstructor() |
|
38 | - ->setMethods(array('setAttribute', 'setName', 'add')) |
|
39 | - ->getMock(); |
|
37 | + ->disableOriginalConstructor() |
|
38 | + ->setMethods(array('setAttribute', 'setName', 'add')) |
|
39 | + ->getMock(); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -53,12 +53,12 @@ discard block |
||
53 | 53 | public function testInitialization() |
54 | 54 | { |
55 | 55 | $this->target->expects($this->once()) |
56 | - ->method('setAttribute') |
|
57 | - ->with('id', 'jobcompanyname-fieldset'); |
|
56 | + ->method('setAttribute') |
|
57 | + ->with('id', 'jobcompanyname-fieldset'); |
|
58 | 58 | |
59 | 59 | $this->target->expects($this->once()) |
60 | - ->method('setName') |
|
61 | - ->with('jobCompanyName'); |
|
60 | + ->method('setName') |
|
61 | + ->with('jobCompanyName'); |
|
62 | 62 | |
63 | 63 | $addParam1 = array( |
64 | 64 | 'type' => 'Jobs/HiringOrganizationSelect', |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | ]; |
94 | 94 | |
95 | 95 | $this->target->expects($this->exactly(2)) |
96 | - ->method('add') |
|
97 | - ->withConsecutive( |
|
98 | - [$addParam1], |
|
99 | - [$addParam2] |
|
96 | + ->method('add') |
|
97 | + ->withConsecutive( |
|
98 | + [$addParam1], |
|
99 | + [$addParam2] |
|
100 | 100 | ); |
101 | 101 | |
102 | 102 | $this->target->init(); |
@@ -86,17 +86,17 @@ |
||
86 | 86 | [ 'status', ['value' => new Status(), 'default' => new Status() ]], |
87 | 87 | [ 'status', ['value' => Status::NONPUBLIC, 'expect' => '@' . Status::class]], |
88 | 88 | [ 'status', ['value' => Status::PUBLIC_TO_ALL, 'ignore_getter' => true, |
89 | - 'pre' => function () use ($permissions2) { |
|
90 | - $this->target->setPermissions($permissions2); |
|
91 | - }] |
|
89 | + 'pre' => function () use ($permissions2) { |
|
90 | + $this->target->setPermissions($permissions2); |
|
91 | + }] |
|
92 | 92 | ], |
93 | 93 | [ 'status', ['value' => Status::NONPUBLIC, 'ignore_getter' => true, |
94 | - 'pre' => function () use ($permissions2) { |
|
95 | - $this->target->setPermissions($permissions2); |
|
96 | - }, |
|
97 | - 'post' => function () use ($permissions2) { |
|
98 | - $permissions2->__phpunit_verify(); |
|
99 | - }] |
|
94 | + 'pre' => function () use ($permissions2) { |
|
95 | + $this->target->setPermissions($permissions2); |
|
96 | + }, |
|
97 | + 'post' => function () use ($permissions2) { |
|
98 | + $permissions2->__phpunit_verify(); |
|
99 | + }] |
|
100 | 100 | ], |
101 | 101 | [ 'attachments', $defaultOptions], |
102 | 102 | [ 'user', ['value' => new User(), 'ignore_getter' => true, |
@@ -76,37 +76,37 @@ |
||
76 | 76 | ] |
77 | 77 | ], |
78 | 78 | [ |
79 | - 'type' => 'Core/Datepicker', |
|
80 | - 'name' => 'endDate', |
|
81 | - 'options' => [ |
|
82 | - 'label' => 'End date' |
|
83 | - ], |
|
79 | + 'type' => 'Core/Datepicker', |
|
80 | + 'name' => 'endDate', |
|
81 | + 'options' => [ |
|
82 | + 'label' => 'End date' |
|
83 | + ], |
|
84 | 84 | ], |
85 | - [ |
|
86 | - 'type' => 'checkbox', |
|
87 | - 'name' => 'currentIndicator', |
|
88 | - 'options' => [ |
|
89 | - 'label' => 'ongoing' |
|
90 | - ] |
|
91 | - ], |
|
92 | - [ |
|
93 | - 'name' => 'organizationName', |
|
94 | - 'options' => [ |
|
95 | - 'label' => 'Company Name'], |
|
96 | - 'attributes' => [ |
|
97 | - 'title' => 'please enter the name of the company' |
|
98 | - ], |
|
99 | - ], |
|
100 | - [ |
|
101 | - 'name' => 'description', |
|
102 | - 'type' => 'Zend\Form\Element\Textarea', |
|
103 | - 'options' => [ |
|
104 | - 'label' => 'Description', |
|
105 | - ], |
|
106 | - 'attributes' => [ |
|
107 | - 'title' => 'please describe your position', |
|
108 | - ], |
|
109 | - ], |
|
85 | + [ |
|
86 | + 'type' => 'checkbox', |
|
87 | + 'name' => 'currentIndicator', |
|
88 | + 'options' => [ |
|
89 | + 'label' => 'ongoing' |
|
90 | + ] |
|
91 | + ], |
|
92 | + [ |
|
93 | + 'name' => 'organizationName', |
|
94 | + 'options' => [ |
|
95 | + 'label' => 'Company Name'], |
|
96 | + 'attributes' => [ |
|
97 | + 'title' => 'please enter the name of the company' |
|
98 | + ], |
|
99 | + ], |
|
100 | + [ |
|
101 | + 'name' => 'description', |
|
102 | + 'type' => 'Zend\Form\Element\Textarea', |
|
103 | + 'options' => [ |
|
104 | + 'label' => 'Description', |
|
105 | + ], |
|
106 | + 'attributes' => [ |
|
107 | + 'title' => 'please describe your position', |
|
108 | + ], |
|
109 | + ], |
|
110 | 110 | ]; |
111 | 111 | |
112 | 112 | $addArgValidator = function ($arg) use ($add) { |
@@ -78,61 +78,61 @@ |
||
78 | 78 | ] |
79 | 79 | ], |
80 | 80 | [ |
81 | - 'type' => 'Core/Datepicker', |
|
82 | - 'name' => 'endDate', |
|
83 | - 'options' => [ |
|
84 | - 'label' => 'End date' |
|
85 | - ], |
|
81 | + 'type' => 'Core/Datepicker', |
|
82 | + 'name' => 'endDate', |
|
83 | + 'options' => [ |
|
84 | + 'label' => 'End date' |
|
85 | + ], |
|
86 | 86 | ], |
87 | - [ |
|
88 | - 'type' => 'checkbox', |
|
89 | - 'name' => 'currentIndicator', |
|
90 | - 'options' => [ |
|
91 | - 'label' => 'ongoing' |
|
92 | - ] |
|
93 | - ], |
|
94 | - [ |
|
95 | - 'name' => 'competencyName', |
|
96 | - 'options' => [ |
|
97 | - 'label' => 'Degree'], |
|
98 | - 'attributes' => [ |
|
99 | - 'title' => 'please enter the name of your qualification' |
|
100 | - ], |
|
101 | - ], |
|
102 | - [ |
|
103 | - 'name' => 'organizationName', |
|
104 | - 'options' => [ |
|
105 | - 'label' => 'Organization Name'], |
|
106 | - 'attributes' => [ |
|
107 | - 'title' => 'please enter the name of the university or school' |
|
108 | - ], |
|
109 | - ], |
|
87 | + [ |
|
88 | + 'type' => 'checkbox', |
|
89 | + 'name' => 'currentIndicator', |
|
90 | + 'options' => [ |
|
91 | + 'label' => 'ongoing' |
|
92 | + ] |
|
93 | + ], |
|
94 | + [ |
|
95 | + 'name' => 'competencyName', |
|
96 | + 'options' => [ |
|
97 | + 'label' => 'Degree'], |
|
98 | + 'attributes' => [ |
|
99 | + 'title' => 'please enter the name of your qualification' |
|
100 | + ], |
|
101 | + ], |
|
102 | + [ |
|
103 | + 'name' => 'organizationName', |
|
104 | + 'options' => [ |
|
105 | + 'label' => 'Organization Name'], |
|
106 | + 'attributes' => [ |
|
107 | + 'title' => 'please enter the name of the university or school' |
|
108 | + ], |
|
109 | + ], |
|
110 | 110 | [ |
111 | - 'name' => 'country', |
|
112 | - 'options' => [ |
|
113 | - 'label' => 'Country'], |
|
114 | - 'attributes' => [ |
|
115 | - 'title' => /*@translate */ 'please select the country' |
|
116 | - ], |
|
117 | - ], |
|
118 | - [ |
|
119 | - 'name' => 'city', |
|
120 | - 'options' => [ |
|
121 | - 'label' => 'City'], |
|
122 | - 'attributes' => [ |
|
123 | - 'title' => 'please enter the name of the city' |
|
124 | - ], |
|
125 | - ], |
|
126 | - [ |
|
127 | - 'name' => 'description', |
|
128 | - 'type' => 'Zend\Form\Element\Textarea', |
|
129 | - 'options' => [ |
|
130 | - 'label' => 'Description', |
|
131 | - ], |
|
132 | - 'attributes' => [ |
|
133 | - 'title' => 'please enter a description', |
|
134 | - ], |
|
135 | - ], |
|
111 | + 'name' => 'country', |
|
112 | + 'options' => [ |
|
113 | + 'label' => 'Country'], |
|
114 | + 'attributes' => [ |
|
115 | + 'title' => /*@translate */ 'please select the country' |
|
116 | + ], |
|
117 | + ], |
|
118 | + [ |
|
119 | + 'name' => 'city', |
|
120 | + 'options' => [ |
|
121 | + 'label' => 'City'], |
|
122 | + 'attributes' => [ |
|
123 | + 'title' => 'please enter the name of the city' |
|
124 | + ], |
|
125 | + ], |
|
126 | + [ |
|
127 | + 'name' => 'description', |
|
128 | + 'type' => 'Zend\Form\Element\Textarea', |
|
129 | + 'options' => [ |
|
130 | + 'label' => 'Description', |
|
131 | + ], |
|
132 | + 'attributes' => [ |
|
133 | + 'title' => 'please enter a description', |
|
134 | + ], |
|
135 | + ], |
|
136 | 136 | ]; |
137 | 137 | |
138 | 138 | $addArgValidator = function ($arg) use ($add) { |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | public function testInit() |
35 | 35 | { |
36 | 36 | $target = $this->getMockBuilder('\Install\Form\Installation') |
37 | - ->setMethods(array('add', 'setName', 'setAttributes')) |
|
38 | - ->disableOriginalConstructor() |
|
39 | - ->getMock(); |
|
37 | + ->setMethods(array('add', 'setName', 'setAttributes')) |
|
38 | + ->disableOriginalConstructor() |
|
39 | + ->getMock(); |
|
40 | 40 | |
41 | 41 | $add1 = array( |
42 | 42 | 'type' => 'Text', |
@@ -74,19 +74,19 @@ discard block |
||
74 | 74 | ); |
75 | 75 | |
76 | 76 | $target->expects($this->exactly(4)) |
77 | - ->method('add') |
|
78 | - ->withConsecutive( |
|
79 | - array($add1), |
|
80 | - array($add2), |
|
81 | - array($add3), |
|
82 | - array($add4) |
|
83 | - )->will($this->returnSelf()); |
|
77 | + ->method('add') |
|
78 | + ->withConsecutive( |
|
79 | + array($add1), |
|
80 | + array($add2), |
|
81 | + array($add3), |
|
82 | + array($add4) |
|
83 | + )->will($this->returnSelf()); |
|
84 | 84 | |
85 | 85 | $target->expects($this->once())->method('setName')->with('installation'); |
86 | 86 | $target->expects($this->once())->method('setAttributes')->with( |
87 | 87 | array( |
88 | - 'method' => 'post', |
|
89 | - ) |
|
88 | + 'method' => 'post', |
|
89 | + ) |
|
90 | 90 | ); |
91 | 91 | /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Install\Form\Installation */ |
92 | 92 | $target->init(); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ), |
104 | 104 | 'validators' => array( |
105 | 105 | array('name' => MongoDbConnectionString::class, |
106 | - 'break_chain_on_failure' => true), |
|
106 | + 'break_chain_on_failure' => true), |
|
107 | 107 | array('name' => MongoDbConnection::class), |
108 | 108 | ), |
109 | 109 | ), |