Completed
Push — master ( 4c14c6...4ad177 )
by Mathias
25s queued 15s
created
module/Jobs/test/JobsTest/Form/ListFilterAdminTest.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -26,28 +26,28 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterAdminFieldset')
29
-                       ->setMethods(array('add', 'parentInit'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'parentInit'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type'       => 'Select',
34
-                 'name'       => 'status',
35
-                 'options'    => array(
36
-                     'value_options' => array(
37
-                         'all' => 'All',
38
-                         Status::ACTIVE => 'Active',
39
-                         Status::INACTIVE => 'Inactive',
40
-                         Status::CREATED => 'Created',
41
-                         Status::PUBLISH => 'Published',
42
-                         Status::REJECTED => 'Rejected',
43
-                         Status::EXPIRED =>  'Expired',
44
-                     )
45
-                 ),
46
-                 'attributes' => array(
47
-                     'value' => Status::CREATED,
48
-                     'data-searchbox'  => -1,  // hide the search box
49
-                     'data-allowclear' => 'false', // allow to clear a selected value
50
-                 )
34
+                    'name'       => 'status',
35
+                    'options'    => array(
36
+                        'value_options' => array(
37
+                            'all' => 'All',
38
+                            Status::ACTIVE => 'Active',
39
+                            Status::INACTIVE => 'Inactive',
40
+                            Status::CREATED => 'Created',
41
+                            Status::PUBLISH => 'Published',
42
+                            Status::REJECTED => 'Rejected',
43
+                            Status::EXPIRED =>  'Expired',
44
+                        )
45
+                    ),
46
+                    'attributes' => array(
47
+                        'value' => Status::CREATED,
48
+                        'data-searchbox'  => -1,  // hide the search box
49
+                        'data-allowclear' => 'false', // allow to clear a selected value
50
+                    )
51 51
         ];
52 52
 
53 53
         $add2 = [
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
         ];
64 64
 
65 65
         $target->expects($this->exactly(2))
66
-               ->method('add')
67
-               ->withConsecutive(
68
-                   [$add1],
69
-                   [$add2]
70
-               )->will($this->returnSelf());
66
+                ->method('add')
67
+                ->withConsecutive(
68
+                    [$add1],
69
+                    [$add2]
70
+                )->will($this->returnSelf());
71 71
 
72 72
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
73 73
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterBaseTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterBaseFieldset')
29
-                       ->setMethods(array('add', 'setName'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'setName'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type' => 'Hidden',
34
-                 'name' => 'page',
35
-                 'attributes' => ['value' => 1,]
34
+                    'name' => 'page',
35
+                    'attributes' => ['value' => 1,]
36 36
         ];
37 37
 
38 38
         $add2 = [
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         ];
44 44
 
45 45
         $target->expects($this->exactly(2))
46
-               ->method('add')
47
-               ->withConsecutive(
48
-                   [$add1],
49
-                   [$add2]
50
-               )->will($this->returnSelf());
46
+                ->method('add')
47
+                ->withConsecutive(
48
+                    [$add1],
49
+                    [$add2]
50
+                )->will($this->returnSelf());
51 51
 
52 52
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
53 53
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/InputFilter/AtsModeTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,9 +146,9 @@
 block discarded – undo
146 146
     {
147 147
         /* @var $target AtsMode|\PHPUnit_Framework_MockObject_MockObject */
148 148
         $target = $this->getMockBuilder('\Jobs\Form\InputFilter\AtsMode')
149
-                       ->disableOriginalConstructor()
150
-                       ->setMethods(array('add', 'populate'))
151
-                       ->getMock();
149
+                        ->disableOriginalConstructor()
150
+                        ->setMethods(array('add', 'populate'))
151
+                        ->getMock();
152 152
 
153 153
         $add = $target->expects($this->exactly(count($expectedSpec)))
154 154
             ->method('add');
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterLocationTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     public function testInit()
26 26
     {
27 27
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterLocationFieldset')
28
-                       ->setMethods(array('add', 'parentInit'))
29
-                       ->disableOriginalConstructor()
30
-                       ->getMock();
28
+                        ->setMethods(array('add', 'parentInit'))
29
+                        ->disableOriginalConstructor()
30
+                        ->getMock();
31 31
 
32 32
         $add1 = [
33 33
             'name'    => 'l',
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         ];
62 62
 
63 63
         $target->expects($this->exactly(2))
64
-               ->method('add')
65
-               ->withConsecutive(
66
-                   [$add1],
67
-                   [$add2]
68
-               )->will($this->returnSelf());
64
+                ->method('add')
65
+                ->withConsecutive(
66
+                    [$add1],
67
+                    [$add2]
68
+                )->will($this->returnSelf());
69 69
 
70 70
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
71 71
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/GetOrganizationManagersTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 
108 108
         $wf = new WorkflowSettings();
109 109
         $wf->setAcceptApplicationByDepartmentManager($flag('acceptApplication'))
110
-           ->setAssignDepartmentManagersToJobs($flag('assignManagers'));
110
+            ->setAssignDepartmentManagersToJobs($flag('assignManagers'));
111 111
 
112 112
         $org->expects($this->once())->method('getWorkflowSettings')->willReturn($wf);
113 113
 
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Form/ApplicationsFilterTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -84,15 +84,15 @@
 block discarded – undo
84 84
         ];
85 85
 
86 86
         $add3 = ['type' => 'ToggleButton',
87
-                 'name' => 'unread',
88
-                 'options' => [
89
-                     'checked_value' => '1',
90
-                     'unchecked_value' => '0',
91
-                     'label' => 'unread',
92
-                 ],
93
-                 'attributes' => [
94
-                     'data-submit-on-change' => 'true',
95
-                 ]
87
+                    'name' => 'unread',
88
+                    'options' => [
89
+                        'checked_value' => '1',
90
+                        'unchecked_value' => '0',
91
+                        'label' => 'unread',
92
+                    ],
93
+                    'attributes' => [
94
+                        'data-submit-on-change' => 'true',
95
+                    ]
96 96
         ];
97 97
 
98 98
         /** @noinspection PhpUndefinedMethodInspection */
Please login to merge, or discard this patch.
Applications/test/ApplicationsTest/Acl/ApplicationAccessAssertionTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@
 block discarded – undo
70 70
         $app  = new Application();
71 71
         $app2 = new Application();
72 72
         $app2->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW)
73
-                               ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
73
+                                ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
74 74
 
75 75
         $app3 = new Application();
76 76
         $app3->setIsDraft(true);
77 77
         //$app3->setUser($user);
78 78
         $app3->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW)
79
-                               ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
79
+                                ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
80 80
 
81 81
         return array(
82 82
             'nouser-noapp'     => array($role, $resource, null, false),
Please login to merge, or discard this patch.
test/OrganizationsTest/Controller/Plugin/InvitationHandlerTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         }
62 62
         if (in_array('userTokenGenerator', $mocks)) {
63 63
             $this->userTokenGeneratorMock = $this->getMockBuilder('\Auth\Service\UserUniqueTokenGenerator')
64
-                                             ->disableOriginalConstructor()->getMock();
64
+                                                ->disableOriginalConstructor()->getMock();
65 65
         }
66 66
         if (in_array('mailerPlugin', $mocks)) {
67 67
             $this->mailerPluginMock   = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
68
-                                         ->disableOriginalConstructor()->getMock();
68
+                                            ->disableOriginalConstructor()->getMock();
69 69
         }
70 70
 
71 71
         if ($inject) {
@@ -133,9 +133,9 @@  discard block
 block discarded – undo
133 133
         $email = 'invalidEmailAddress';
134 134
         $message = 'Email address is invalid.';
135 135
         $this->translatorMock->expects($this->exactly(5))
136
-                             ->method('translate')
137
-                             ->with($message)
138
-                             ->will($this->returnArgument(0));
136
+                                ->method('translate')
137
+                                ->with($message)
138
+                                ->will($this->returnArgument(0));
139 139
 
140 140
         $expected = array(
141 141
             'ok' => false,
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $user->getInfo()->setEmail($email);
161 161
 
162 162
         $this->userRepositoryMock->expects($this->once())->method('findByEmail')->with($email, null)
163
-                                 ->willReturn($user);
163
+                                    ->willReturn($user);
164 164
         $this->userRepositoryMock->expects($this->never())->method('create');
165 165
         $this->userTokenGeneratorMock->expects($this->once())->method('generate')->with($user, 7)->willReturn('testToken');
166 166
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         $user->getInfo()->setEmail($email);
193 193
 
194 194
         $this->userRepositoryMock->expects($this->once())->method('findByEmail')->with($email, null)
195
-                                 ->willReturn(null);
195
+                                    ->willReturn(null);
196 196
         $this->userRepositoryMock->expects($this->once())->method('create')->willReturn($user);
197 197
         $this->userTokenGeneratorMock->expects($this->once())->method('generate')->with($user, 7)->willReturn('testToken');
198 198
 
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
 
228 228
         $message = 'Sending invitation mail failed.';
229 229
         $this->translatorMock->expects($this->once())
230
-                             ->method('translate')
231
-                             ->with($message)
232
-                             ->will($this->returnArgument(0));
230
+                                ->method('translate')
231
+                                ->with($message)
232
+                                ->will($this->returnArgument(0));
233 233
 
234 234
         $this->userRepositoryMock->expects($this->once())->method('findByEmail')->with($email, null)
235
-                                 ->willReturn($user);
235
+                                    ->willReturn($user);
236 236
         $this->userRepositoryMock->expects($this->never())->method('create');
237 237
         $this->userTokenGeneratorMock->expects($this->once())->method('generate')->with($user, 7)->willReturn('testToken');
238 238
 
Please login to merge, or discard this patch.
Repository/Event/InjectOrganizationReferenceListenerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $rep = $this->getMockBuilder('\Organizations\Repository\Organization')->disableOriginalConstructor()->getMock();
80 80
 
81 81
         $dm->expects($this->once())->method('getRepository')->with('Organizations\Entity\Organization')
82
-           ->willReturn($rep);
82
+            ->willReturn($rep);
83 83
 
84 84
         $doc->setId('test1234');
85 85
 
Please login to merge, or discard this patch.