Completed
Pull Request — master (#524)
by Mathias
11:33
created
test/OrganizationsTest/Factory/Controller/ProfileControllerFactoryTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,17 +45,17 @@
 block discarded – undo
45 45
         $container->expects($this->any())
46 46
             ->method('get')
47 47
             ->willReturnMap([
48
-                ['repositories',$container],
49
-                ['Organizations/Organization',$repository],
50
-                ['translator',$translator],
51
-                ['Organizations\ImageFileCache\Manager',$imageFileCacheManager],
52
-                ['Jobs/Job',$jobRepository],
53
-                ['Jobs/JobboardSearchOptions',$options]
48
+                ['repositories', $container],
49
+                ['Organizations/Organization', $repository],
50
+                ['translator', $translator],
51
+                ['Organizations\ImageFileCache\Manager', $imageFileCacheManager],
52
+                ['Jobs/Job', $jobRepository],
53
+                ['Jobs/JobboardSearchOptions', $options]
54 54
             ])
55 55
         ;
56 56
 
57 57
         $factory = new ProfileControllerFactory();
58
-        $controller = $factory($container,'some-name');
59
-        $this->assertInstanceOf(ProfileController::class,$controller);
58
+        $controller = $factory($container, 'some-name');
59
+        $this->assertInstanceOf(ProfileController::class, $controller);
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
Factory/Controller/InviteEmployeeControllerFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
         $container->expects($this->exactly(2))
33 33
             ->method('get')
34 34
             ->willReturnMap([
35
-                ['Core/RepositoryService',$container],
36
-                ['Organizations/Organization',$orgRepo]
35
+                ['Core/RepositoryService', $container],
36
+                ['Organizations/Organization', $orgRepo]
37 37
             ])
38 38
         ;
39 39
         $factory = new InviteEmployeeControllerFactory();
40 40
 
41 41
         $this->assertInstanceOf(
42 42
             InviteEmployeeController::class,
43
-            $factory($container,'some-name')
43
+            $factory($container, 'some-name')
44 44
         );
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
Factory/Controller/Plugin/AcceptInvitationHandlerFactoryTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -53,17 +53,17 @@
 block discarded – undo
53 53
         $auth = $this->getMockBuilder('\Auth\AuthenticationService')->disableOriginalConstructor()->getMock();
54 54
 
55 55
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
56
-                         ->disableOriginalConstructor()
57
-                         ->getMock()
56
+                            ->disableOriginalConstructor()
57
+                            ->getMock()
58 58
         ;
59 59
         $services->expects($this->exactly(2))
60
-                 ->method('get')
61
-                 ->will($this->returnValueMap(
62
-		            array(
63
-		                array('repositories',$repositories),
64
-		                array('AuthenticationService', $auth)
65
-		            )
66
-                 ))
60
+                    ->method('get')
61
+                    ->will($this->returnValueMap(
62
+                    array(
63
+                        array('repositories',$repositories),
64
+                        array('AuthenticationService', $auth)
65
+                    )
66
+                    ))
67 67
         ;
68 68
 
69 69
         $target = new AcceptInvitationHandlerFactory();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                  ->method('get')
61 61
                  ->will($this->returnValueMap(
62 62
 		            array(
63
-		                array('repositories',$repositories),
63
+		                array('repositories', $repositories),
64 64
 		                array('AuthenticationService', $auth)
65 65
 		            )
66 66
                  ))
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
          * Test start here
72 72
          */
73 73
 
74
-        $plugin = $target->__invoke($services,'irrelevant');
74
+        $plugin = $target->__invoke($services, 'irrelevant');
75 75
 	    
76 76
         $this->assertInstanceOf('\Organizations\Controller\Plugin\AcceptInvitationHandler', $plugin);
77 77
         $this->assertSame($userRep, $plugin->getUserRepository());
Please login to merge, or discard this patch.
Factory/Controller/Plugin/InvitationHandlerFactoryTest.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $target = new InvitationHandlerFactory();
45 45
 
46 46
         $tokenGenerator = $this->getMockBuilder('\Auth\Service\UserUniqueTokenGenerator')
47
-                               ->disableOriginalConstructor()->getMock();
47
+                                ->disableOriginalConstructor()->getMock();
48 48
 
49 49
         $userRepository = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock();
50 50
 
@@ -53,21 +53,21 @@  discard block
 block discarded – undo
53 53
 
54 54
         $translator = new \Zend\I18n\Translator\Translator();
55 55
 	
56
-	    $mailer = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
57
-	                   ->disableOriginalConstructor()
58
-	                   ->getMock()
59
-	    ;
56
+        $mailer = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
57
+                        ->disableOriginalConstructor()
58
+                        ->getMock()
59
+        ;
60 60
 	    
61 61
         $pluginManager = $this->getMockBuilder(PluginManager::class)
62
-	        ->disableOriginalConstructor()
63
-	        ->getMock()
62
+            ->disableOriginalConstructor()
63
+            ->getMock()
64 64
         ;
65 65
         
66 66
         $pluginManager->expects($this->once())
67
-	        ->method('get')
68
-	        ->with('Core/Mailer')
69
-	        ->willReturn($mailer)
70
-	    ;
67
+            ->method('get')
68
+            ->with('Core/Mailer')
69
+            ->willReturn($mailer)
70
+        ;
71 71
 
72 72
         $emailValidator = new \Zend\Validator\EmailAddress();
73 73
 
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
 
77 77
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
78 78
         $services->expects($this->exactly(5))
79
-                 ->method('get')
80
-                 ->will($this->returnValueMap(array(
81
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
82
-                     array('translator', $translator),
83
-                     array('repositories', $repositories),
84
-                     array('Auth/UserTokenGenerator', $tokenGenerator),
85
-	                 array('ControllerPluginManager',$pluginManager),
86
-                 )));
79
+                    ->method('get')
80
+                    ->will($this->returnValueMap(array(
81
+                        array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
82
+                        array('translator', $translator),
83
+                        array('repositories', $repositories),
84
+                        array('Auth/UserTokenGenerator', $tokenGenerator),
85
+                        array('ControllerPluginManager',$pluginManager),
86
+                    )));
87 87
 
88 88
         /*
89 89
          * test start here
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,17 +78,17 @@
 block discarded – undo
78 78
         $services->expects($this->exactly(5))
79 79
                  ->method('get')
80 80
                  ->will($this->returnValueMap(array(
81
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
81
+                     array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true)
82 82
                      array('translator', $translator),
83 83
                      array('repositories', $repositories),
84 84
                      array('Auth/UserTokenGenerator', $tokenGenerator),
85
-	                 array('ControllerPluginManager',$pluginManager),
85
+	                 array('ControllerPluginManager', $pluginManager),
86 86
                  )));
87 87
 
88 88
         /*
89 89
          * test start here
90 90
          */
91
-        $plugin = $target->__invoke($services,'irrelevant');
91
+        $plugin = $target->__invoke($services, 'irrelevant');
92 92
 
93 93
         $this->assertInstanceOf('\Organizations\Controller\Plugin\InvitationHandler', $plugin);
94 94
         $this->assertSame($tokenGenerator, $plugin->getUserTokenGenerator());
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Form/EmployeesFieldsetFactoryTest.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                    ->with('appendFile', array('modules/Organizations/js/organizations.employees.js'))
49 49
                    ->willReturn(null);
50 50
 
51
-        $basepath   = $this->getMockBuilder('\Zend\View\Helper\BasePath')->disableOriginalConstructor()->getMock();
51
+        $basepath = $this->getMockBuilder('\Zend\View\Helper\BasePath')->disableOriginalConstructor()->getMock();
52 52
         $basepath->expects($this->once())
53 53
                  ->method('__invoke')
54 54
                  ->with('modules/Organizations/js/organizations.employees.js')
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Form/EmployeeFieldsetFactoryTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@
 block discarded – undo
47 47
 
48 48
         $repos = $this->getMockBuilder('\Core\Repository\RepositoryService')->disableOriginalConstructor()->getMock();
49 49
         $repos->expects($this->once())
50
-              ->method('get')->with('Auth/User')->willReturn($users);
50
+                ->method('get')->with('Auth/User')->willReturn($users);
51 51
 
52 52
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
53 53
         $services->expects($this->once())
54
-                 ->method('get')->with('repositories')->willReturn($repos);
54
+                    ->method('get')->with('repositories')->willReturn($repos);
55 55
 	    
56 56
         $fieldset = $target->__invoke($services,'irrelevant');
57 57
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $services->expects($this->once())
54 54
                  ->method('get')->with('repositories')->willReturn($repos);
55 55
 	    
56
-        $fieldset = $target->__invoke($services,'irrelevant');
56
+        $fieldset = $target->__invoke($services, 'irrelevant');
57 57
 
58 58
         $this->assertInstanceOf('\Organizations\Form\EmployeeFieldset', $fieldset);
59 59
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/ImageFileCache/ODMListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             ]));
39 39
         
40 40
         $factory = new ODMListenerFactory();
41
-        $listener = $factory->__invoke($serviceLocator,'irrelevant');
41
+        $listener = $factory->__invoke($serviceLocator, 'irrelevant');
42 42
         $this->assertInstanceOf(ODMListener::class, $listener);
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/ImageFileCache/ManagerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             ]));
35 35
         
36 36
         $factory = new ManagerFactory();
37
-        $listener = $factory->__invoke($serviceLocator,'irrelevant');
37
+        $listener = $factory->__invoke($serviceLocator, 'irrelevant');
38 38
         $this->assertInstanceOf(Manager::class, $listener);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
OrganizationsTest/Factory/ImageFileCache/ApplicationListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             ]));
52 52
         
53 53
         $factory = new ApplicationListenerFactory();
54
-        $listener = $factory->__invoke($serviceLocator,'irrelevant');
54
+        $listener = $factory->__invoke($serviceLocator, 'irrelevant');
55 55
         $this->assertInstanceOf(ApplicationListener::class, $listener);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.