Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
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.
module/Applications/test/TestConfig.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     //     ),
61 61
     // )
62 62
 
63
-   // Initial configuration with which to seed the ServiceManager.
64
-   // Should be compatible with Zend\ServiceManager\Config.
65
-   // 'service_manager' => array(),
63
+    // Initial configuration with which to seed the ServiceManager.
64
+    // Should be compatible with Zend\ServiceManager\Config.
65
+    // 'service_manager' => array(),
66 66
 );
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Form/EmployeesFieldsetFactoryTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -44,15 +44,15 @@  discard block
 block discarded – undo
44 44
 
45 45
         $headscript = $this->getMockBuilder('\Zend\View\Helper\HeadScript')->disableOriginalConstructor()->getMock();
46 46
         $headscript->expects($this->once())
47
-                   ->method('__call')
48
-                   ->with('appendFile', array('modules/Organizations/js/organizations.employees.js'))
49
-                   ->willReturn(null);
47
+                    ->method('__call')
48
+                    ->with('appendFile', array('modules/Organizations/js/organizations.employees.js'))
49
+                    ->willReturn(null);
50 50
 
51 51
         $basepath   = $this->getMockBuilder('\Zend\View\Helper\BasePath')->disableOriginalConstructor()->getMock();
52 52
         $basepath->expects($this->once())
53
-                 ->method('__invoke')
54
-                 ->with('modules/Organizations/js/organizations.employees.js')
55
-                 ->will($this->returnArgument(0));
53
+                    ->method('__invoke')
54
+                    ->with('modules/Organizations/js/organizations.employees.js')
55
+                    ->will($this->returnArgument(0));
56 56
 
57 57
         $helpers = $this->getMockBuilder('\Zend\View\HelperPluginManager')->disableOriginalConstructor()->getMock();
58 58
         $helpers->expects($this->exactly(2))
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
                 ->will($this->onConsecutiveCalls($headscript, $basepath));
65 65
 
66 66
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')->disableOriginalConstructor()
67
-                         ->getMock();
67
+                            ->getMock();
68 68
 
69 69
         $services->expects($this->once())
70
-                 ->method('get')
71
-                 ->with('ViewHelperManager')
72
-                 ->willReturn($helpers);
70
+                    ->method('get')
71
+                    ->with('ViewHelperManager')
72
+                    ->willReturn($helpers);
73 73
 
74 74
         $fieldset = $target->__invoke($services, 'irrelevant');
75 75
 
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.
test/OrganizationsTest/Controller/Plugin/AcceptInvitationHandlerTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         $this->authMock = $this->getMockBuilder('\Auth\AuthenticationService')->disableOriginalConstructor()->getMock();
49 49
         $this->organizationRepositoryMock = $this->getMockBuilder('Organizations\Repository\Organization')
50
-                                                 ->disableOriginalConstructor()->getMock();
50
+                                                    ->disableOriginalConstructor()->getMock();
51 51
         $this->userRepositoryMock = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock();
52 52
 
53 53
         if (false !== strpos($this->getName(false), 'Setter')) {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $employee->expects($this->once())->method('setStatus')->with(Employee::STATUS_ASSIGNED);
77 77
 
78 78
         $this->organizationMock->expects($this->once())->method('getEmployee')->with($this->userMock->getId())
79
-                               ->willReturn($employee);
79
+                                ->willReturn($employee);
80 80
 
81 81
         $this->organizationMock->expects($this->any())->method('getId')->willReturn('testOrgId');
82 82
         $this->userRepositoryMock->expects($this->once())->method('findByToken')->with('testToken')->willReturn($this->userMock);
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
                                 ->willReturn($unassignedEmp);
104 104
 
105 105
         $this->organizationRepositoryMock->expects($this->once())
106
-                                         ->method('findPendingOrganizationsByEmployee')
107
-                                         ->with($this->userMock->getId())
108
-                                         ->willReturn(array($sameOrganization, $assignedEmpOrganization, $unassignedEmpOrganization));
106
+                                            ->method('findPendingOrganizationsByEmployee')
107
+                                            ->with($this->userMock->getId())
108
+                                            ->willReturn(array($sameOrganization, $assignedEmpOrganization, $unassignedEmpOrganization));
109 109
 
110 110
         $storageMock = $this->getMockForAbstractClass('\Zend\Authentication\Storage\StorageInterface');
111 111
         $storageMock->expects($this->once())->method('write')->with($this->userMock->getId());
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $orgRef = $this->getMockBuilder('\Organizations\Entity\OrganizationReference')->disableOriginalConstructor()->getMock();
178 178
         $orgRef->expects($this->once())->method('hasAssociation')->willReturn(true);
179 179
         $orgRef->expects($this->once())->method('getEmployee')->with($this->userMock->getId())
180
-               ->willReturn($empMock);
180
+                ->willReturn($empMock);
181 181
 
182 182
         $this->userMock->setOrganization($orgRef);
183 183
 
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.
Organizations/test/OrganizationsTest/Entity/OrganizationReferenceTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     public function testOrganizationReferenceImplementsInterfaces()
42 42
     {
43 43
         $target = $this->getMockBuilder('\Organizations\Entity\OrganizationReference')
44
-                       ->disableOriginalConstructor()
45
-                       ->getMock();
44
+                        ->disableOriginalConstructor()
45
+                        ->getMock();
46 46
 
47 47
         $this->assertInstanceOf('\Organizations\Entity\OrganizationReferenceInterface', $target);
48 48
         $this->assertInstanceOf('\Organizations\Entity\OrganizationInterface', $target);
@@ -59,21 +59,21 @@  discard block
 block discarded – undo
59 59
             $organization = new Organization();
60 60
 
61 61
             $repository = $this->getMockBuilder('\Organizations\Repository\Organization')
62
-                               ->disableOriginalConstructor()->getMock();
62
+                                ->disableOriginalConstructor()->getMock();
63 63
 
64 64
             $repository->expects($this->once())
65
-                       ->method('findByUser')
66
-                       ->with('1234')
67
-                       ->willReturn('owner' == $type ? $organization : null);
65
+                        ->method('findByUser')
66
+                        ->with('1234')
67
+                        ->willReturn('owner' == $type ? $organization : null);
68 68
 
69 69
             if ('owner' == $type) {
70 70
                 $repository->expects($this->never())
71
-                           ->method('findByEmployee');
71
+                            ->method('findByEmployee');
72 72
             } else {
73 73
                 $repository->expects($this->once())
74
-                           ->method('findByEmployee')
75
-                           ->with('1234')
76
-                           ->willReturn('employee' == $type ? $organization : null);
74
+                            ->method('findByEmployee')
75
+                            ->with('1234')
76
+                            ->willReturn('employee' == $type ? $organization : null);
77 77
             }
78 78
 
79 79
             $target = new OrganizationReference('1234', $repository);
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
             [['setEmployees', 'getEmployees'], [[$emps], []], ['__self__', $emps]],
197 197
             ['getEmployee', ['4321'], null],
198 198
             [['setUser', 'getUser', 'getPermissionsUserIds'],
199
-                  [[$user], [], []],
200
-                  ['__self__', $user, [PermissionsInterface::PERMISSION_ALL => [$user->getId()]]]
199
+                    [[$user], [], []],
200
+                    ['__self__', $user, [PermissionsInterface::PERMISSION_ALL => [$user->getId()]]]
201 201
             ],
202 202
             ['getJobs', [], null],
203 203
             [['setPermissions', 'getPermissions'], [[$perms], []], ['__self__', $perms]],
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.