Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
test/OrganizationsTest/Repository/Filter/PaginationQueryFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
         $container->expects($this->any())
37 37
             ->method('get')
38 38
             ->willReturnMap([
39
-                ['Core/RepositoryService',$container],
40
-                ['Jobs/Job',$jobRepository],
41
-                ['AuthenticationService',$auth]
39
+                ['Core/RepositoryService', $container],
40
+                ['Jobs/Job', $jobRepository],
41
+                ['AuthenticationService', $auth]
42 42
             ])
43 43
         ;
44 44
 
Please login to merge, or discard this patch.
Factory/Controller/Plugin/InvitationHandlerFactoryTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,11 +80,11 @@
 block discarded – undo
80 80
         $services->expects($this->exactly(5))
81 81
                  ->method('get')
82 82
                  ->will($this->returnValueMap(array(
83
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
83
+                     array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true)
84 84
                      array('translator', $translator),
85 85
                      array('repositories', $repositories),
86 86
                      array('Auth/UserTokenGenerator', $tokenGenerator),
87
-                     array('ControllerPluginManager',$pluginManager),
87
+                     array('ControllerPluginManager', $pluginManager),
88 88
                  )));
89 89
 
90 90
         /*
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $target = new InvitationHandlerFactory();
47 47
 
48 48
         $tokenGenerator = $this->getMockBuilder('\Auth\Service\UserUniqueTokenGenerator')
49
-                               ->disableOriginalConstructor()->getMock();
49
+                                ->disableOriginalConstructor()->getMock();
50 50
 
51 51
         $userRepository = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock();
52 52
 
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         $translator = new \Laminas\I18n\Translator\Translator();
57 57
     
58 58
         $mailer = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
59
-                       ->disableOriginalConstructor()
60
-                       ->getMock()
59
+                        ->disableOriginalConstructor()
60
+                        ->getMock()
61 61
         ;
62 62
         
63 63
         $pluginManager = $this->getMockBuilder(PluginManager::class)
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
 
79 79
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
80 80
         $services->expects($this->exactly(5))
81
-                 ->method('get')
82
-                 ->will($this->returnValueMap(array(
83
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
84
-                     array('translator', $translator),
85
-                     array('repositories', $repositories),
86
-                     array('Auth/UserTokenGenerator', $tokenGenerator),
87
-                     array('ControllerPluginManager',$pluginManager),
88
-                 )));
81
+                    ->method('get')
82
+                    ->will($this->returnValueMap(array(
83
+                        array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
84
+                        array('translator', $translator),
85
+                        array('repositories', $repositories),
86
+                        array('Auth/UserTokenGenerator', $tokenGenerator),
87
+                        array('ControllerPluginManager',$pluginManager),
88
+                    )));
89 89
 
90 90
         /*
91 91
          * test start here
Please login to merge, or discard this patch.
Factory/Controller/Plugin/AcceptInvitationHandlerFactoryTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                  ->method('get')
63 63
                  ->will($this->returnValueMap(
64 64
                      array(
65
-                        array('repositories',$repositories),
65
+                        array('repositories', $repositories),
66 66
                         array('AuthenticationService', $auth)
67 67
                     )
68 68
                  ))
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,17 +55,17 @@
 block discarded – undo
55 55
         $auth = $this->getMockBuilder('\Auth\AuthenticationService')->disableOriginalConstructor()->getMock();
56 56
 
57 57
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
58
-                         ->disableOriginalConstructor()
59
-                         ->getMock()
58
+                            ->disableOriginalConstructor()
59
+                            ->getMock()
60 60
         ;
61 61
         $services->expects($this->exactly(2))
62
-                 ->method('get')
63
-                 ->will($this->returnValueMap(
64
-                     array(
62
+                    ->method('get')
63
+                    ->will($this->returnValueMap(
64
+                        array(
65 65
                         array('repositories',$repositories),
66 66
                         array('AuthenticationService', $auth)
67 67
                     )
68
-                 ))
68
+                    ))
69 69
         ;
70 70
 
71 71
         $target = new AcceptInvitationHandlerFactory();
Please login to merge, or discard this patch.
Factory/Controller/InviteEmployeeControllerFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
         $container->expects($this->exactly(2))
35 35
             ->method('get')
36 36
             ->willReturnMap([
37
-                ['Core/RepositoryService',$container],
38
-                ['Organizations/Organization',$orgRepo]
37
+                ['Core/RepositoryService', $container],
38
+                ['Organizations/Organization', $orgRepo]
39 39
             ])
40 40
         ;
41 41
         $factory = new InviteEmployeeControllerFactory();
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Controller/ProfileControllerFactoryTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@
 block discarded – undo
47 47
         $container->expects($this->any())
48 48
             ->method('get')
49 49
             ->willReturnMap([
50
-                ['repositories',$container],
51
-                ['Organizations/Organization',$repository],
52
-                ['translator',$translator],
53
-                ['Organizations\ImageFileCache\Manager',$imageFileCacheManager],
54
-                ['Jobs/Job',$jobRepository],
55
-                ['Jobs/JobboardSearchOptions',$options]
50
+                ['repositories', $container],
51
+                ['Organizations/Organization', $repository],
52
+                ['translator', $translator],
53
+                ['Organizations\ImageFileCache\Manager', $imageFileCacheManager],
54
+                ['Jobs/Job', $jobRepository],
55
+                ['Jobs/JobboardSearchOptions', $options]
56 56
             ])
57 57
         ;
58 58
 
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Mail/EmployeeInvitationFactoryTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         $user = $this->getMockForAbstractClass('\Auth\Entity\UserInterface');
62 62
 
63
-        $makeArray = function ($options) use ($user) {
63
+        $makeArray = function($options) use ($user) {
64 64
             $options['user'] = $user;
65 65
             return array($options, array_merge(array('user' => $user, 'token' => false, 'template' => 'organizations/mail/invite-employee'), $options));
66 66
         };
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
 
118 118
         $orgRep = $this->getMockBuilder('\Organizations\Repository\Organization')->disableOriginalConstructor()->getMock();
119 119
         $orgRep->expects($this->exactly(2))
120
-               ->method('findByUser')
121
-               ->withConsecutive(array('testOwner'), array('testUser'))
122
-               ->will($this->onConsecutiveCalls($ownerOrg, $userOrg));
120
+                ->method('findByUser')
121
+                ->withConsecutive(array('testOwner'), array('testUser'))
122
+                ->will($this->onConsecutiveCalls($ownerOrg, $userOrg));
123 123
 
124 124
 
125 125
         $ownerOrgRef = new OrganizationReference('testOwner', $orgRep);
@@ -136,25 +136,25 @@  discard block
 block discarded – undo
136 136
 
137 137
         $router = $this->getMockForAbstractClass(RouteStackInterface::class);
138 138
         $router->expects($this->once())
139
-               ->method('assemble')
140
-               ->with(
141
-                   array('action' => 'accept'),
142
-                   array('name' => 'lang/organizations/invite',
139
+                ->method('assemble')
140
+                ->with(
141
+                    array('action' => 'accept'),
142
+                    array('name' => 'lang/organizations/invite',
143 143
                             'query' => array('token' => $options['token'], 'organization' => $ownerOrg->getId()))
144
-               )
145
-               ->willReturn('testUrl');
144
+                )
145
+                ->willReturn('testUrl');
146 146
 
147 147
         $mailService = $this->getMockBuilder('\Core\Mail\MailService')->disableOriginalConstructor()->getMock();
148 148
 
149 149
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
150 150
 
151 151
         $services->expects($this->exactly(3))
152
-                 ->method('get')
153
-                 ->withConsecutive(
154
-                     array('AuthenticationService'),
155
-                     array('Router'),
156
-                     ['Core/MailService']
157
-                 )->will($this->onConsecutiveCalls($authService, $router, $mailService));
152
+                    ->method('get')
153
+                    ->withConsecutive(
154
+                        array('AuthenticationService'),
155
+                        array('Router'),
156
+                        ['Core/MailService']
157
+                    )->will($this->onConsecutiveCalls($authService, $router, $mailService));
158 158
 
159 159
         $mailMock = new HTMLTemplateMessage(new \Laminas\ServiceManager\ServiceManager());
160 160
         $translator = $this->getMockBuilder('\Laminas\I18n\Translator\Translator')->disableOriginalConstructor()->getMock();
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Entity/OrganizationImageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     public function testGetUriWithAndWithoutFilename()
57 57
     {
58
-        $filename="My File.png";
58
+        $filename = "My File.png";
59 59
         $this->target->setName($filename);
60 60
         $this->assertSame($this->target->getUri(), '/file/Organizations.OrganizationImage/'.$this->target->getId().'/'.urlencode($this->target->getName()));
61 61
         $this->target->setName(null);
Please login to merge, or discard this patch.
module/Organizations/test/OrganizationsTest/Entity/OrganizationTest.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -61,74 +61,74 @@
 block discarded – undo
61 61
         $parent = new Organization();
62 62
         $permissions = $this->createMock(Permissions::class);
63 63
         return [
64
-            [ 'externalId', '1234' ],
65
-            [ 'name', [ 'value'=> '', 'ignore_setter' => true] ],
66
-            [ 'name', [ 'pre' => 'setupGetName', 'value' => 'Test', 'ignore_setter' => true] ],
67
-            [ 'organizationName' , [
68
-                '@value' => [ '\Organizations\Entity\OrganizationName', [ 'Test' ] ],
64
+            ['externalId', '1234'],
65
+            ['name', ['value'=> '', 'ignore_setter' => true]],
66
+            ['name', ['pre' => 'setupGetName', 'value' => 'Test', 'ignore_setter' => true]],
67
+            ['organizationName', [
68
+                '@value' => ['\Organizations\Entity\OrganizationName', ['Test']],
69 69
                 'post' => 'organizationNamePostAsserts'
70 70
             ]],
71
-            [ 'organizationName', [
71
+            ['organizationName', [
72 72
                 'pre' => 'setupOrganizationName',
73
-                '@value' => [ '\Organizations\Entity\OrganizationName', [ 'TestNew' ] ],
73
+                '@value' => ['\Organizations\Entity\OrganizationName', ['TestNew']],
74 74
                 'post' => 'assertOrganizationNameCounter'
75 75
             ]],
76
-            [ 'permissions',[
76
+            ['permissions', [
77 77
                 'value' => $permissions
78 78
             ]],
79
-            [ 'image',[
79
+            ['image', [
80 80
                 'value' => new OrganizationImage()
81 81
             ]],
82
-            [ 'images',[
82
+            ['images', [
83 83
                 'value' => new ImageSet(),
84 84
             ]],
85
-            [ 'isDraft',[
85
+            ['isDraft', [
86 86
                 'default' => false,
87 87
                 'value' => true,
88 88
                 'getter_method' => 'isDraft'
89 89
             ]],
90
-            [ 'contact',[
90
+            ['contact', [
91 91
                 'value' => new OrganizationContact()
92 92
             ]],
93
-            [ 'description',[
93
+            ['description', [
94 94
                 'default' => null,
95 95
                 'value' => 'Some Description'
96 96
             ]],
97
-            [ 'parent',[
97
+            ['parent', [
98 98
                 'default' => null,
99 99
                 'value' => $parent,
100 100
             ]],
101
-            [ 'hiringOrganizations',[
101
+            ['hiringOrganizations', [
102 102
                 'default' => null,
103 103
             ]],
104 104
 
105
-            [ 'employees',[
105
+            ['employees', [
106 106
                 '@default' => ArrayCollection::class,
107 107
                 'value' => new ArrayCollection()
108 108
             ]],
109 109
 
110
-            [ 'jobs',[
110
+            ['jobs', [
111 111
                 'default' => null,
112 112
             ]],
113 113
 
114
-            [ 'user',[
114
+            ['user', [
115 115
                 'value' => new User()
116 116
             ]],
117 117
 
118
-            [ 'template',[
118
+            ['template', [
119 119
                 'value' => new Template(),
120 120
             ]],
121 121
 
122
-            [ 'workflowSettings',[
122
+            ['workflowSettings', [
123 123
                 'value' => new WorkflowSettings(),
124 124
             ]],
125 125
 
126
-            [ 'profileSetting',[
126
+            ['profileSetting', [
127 127
                 'value' => Organization::PROFILE_ALWAYS_ENABLE,
128 128
                 'default' => null,
129 129
             ]],
130 130
 
131
-            [ 'hydrator', [
131
+            ['hydrator', [
132 132
                 '@default' => EntityHydrator::class
133 133
             ]]
134 134
 
Please login to merge, or discard this patch.
module/Organizations/test/OrganizationsTest/Form/EmployeeFieldsetTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -104,15 +104,15 @@
 block discarded – undo
104 104
                 ->getMock();
105 105
 
106 106
         $target->expects($this->exactly(4))
107
-               ->method('add')
108
-               ->withConsecutive(
109
-                   array($expectAdd1),
110
-                   array($expectAdd2),
111
-                   array($expectAdd3),
112
-                   array($expectAdd4)
107
+                ->method('add')
108
+                ->withConsecutive(
109
+                    array($expectAdd1),
110
+                    array($expectAdd2),
111
+                    array($expectAdd3),
112
+                    array($expectAdd4)
113 113
 
114 114
 
115
-               );
115
+                );
116 116
 
117 117
         $target->init();
118 118
     }
Please login to merge, or discard this patch.