Completed
Push — develop ( 928e2a...e40e4d )
by Mathias
28:01 queued 20:22
created
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.
Organizations/test/OrganizationsTest/Entity/OrganizationImageTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     public function testGetResourceId()
51 51
     {
52
-       $this->assertSame($this->target->getResourceId(), 'Entity/OrganizationImage');
52
+        $this->assertSame($this->target->getResourceId(), 'Entity/OrganizationImage');
53 53
     }
54 54
 
55 55
     public function testGetUriWithAndWithoutFilename()
Please login to merge, or discard this patch.
module/Organizations/test/OrganizationsTest/Form/EmployeesFieldsetTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@
 block discarded – undo
86 86
                 ->getMock();
87 87
 
88 88
         $target->expects($this->exactly(2))
89
-               ->method('add')
90
-               ->withConsecutive(
89
+                ->method('add')
90
+                ->withConsecutive(
91 91
                     array($expectAdd1),
92 92
                     array($expectAdd2)
93
-               );
93
+                );
94 94
 
95 95
         $target->init();
96 96
         $this->assertEquals('employees', $target->getName());
Please login to merge, or discard this patch.
module/Organizations/test/OrganizationsTest/Form/EmployeeFieldsetTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,15 +102,15 @@
 block discarded – undo
102 102
                 ->getMock();
103 103
 
104 104
         $target->expects($this->exactly(4))
105
-               ->method('add')
106
-               ->withConsecutive(
105
+                ->method('add')
106
+                ->withConsecutive(
107 107
                     array($expectAdd1),
108 108
                     array($expectAdd2),
109 109
                     array($expectAdd3),
110 110
                     array($expectAdd4)
111 111
 
112 112
 
113
-               );
113
+                );
114 114
 
115 115
         $target->init();
116 116
     }
Please login to merge, or discard this patch.
module/Organizations/test/TestConfig.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 $modules = array_merge(
3
-	include_once __DIR__.'/../../../config/common.modules.php',
4
-	[
5
-		'Core',
6
-		'Auth',
7
-		'Jobs',
8
-		'Organizations'
9
-	]
3
+    include_once __DIR__.'/../../../config/common.modules.php',
4
+    [
5
+        'Core',
6
+        'Auth',
7
+        'Jobs',
8
+        'Organizations'
9
+    ]
10 10
 );
11 11
 return array(
12 12
     'modules' => $modules,
Please login to merge, or discard this patch.
module/Core/test/CoreConfig.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 return array(
4 4
     // This should be an array of module namespaces used in the application.
5 5
     'modules' => array_merge($commonModules,[
6
-	    'Core',
7
-	    'Auth',
6
+        'Core',
7
+        'Auth',
8 8
     ]),
9 9
 
10 10
     // These are various options for the listeners attached to the ModuleManager
@@ -60,7 +60,7 @@  discard block
 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
 );
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/TestConfig.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@  discard block
 block discarded – undo
2 2
 return array(
3 3
     // This should be an array of module namespaces used in the application.
4 4
     'modules' => array_merge(
5
-    	include_once __DIR__.'/../../../config/common.modules.php',
6
-	    array(
5
+        include_once __DIR__.'/../../../config/common.modules.php',
6
+        array(
7 7
             'Core', 'Auth', 'Jobs', 'Applications', 'Organizations'
8
-	    )
8
+        )
9 9
     ),
10 10
 
11 11
     // These are various options for the listeners attached to the ModuleManager
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     //     ),
62 62
     // )
63 63
 
64
-   // Initial configuration with which to seed the ServiceManager.
65
-   // Should be compatible with Zend\ServiceManager\Config.
66
-   // 'service_manager' => array(),
64
+    // Initial configuration with which to seed the ServiceManager.
65
+    // Should be compatible with Zend\ServiceManager\Config.
66
+    // 'service_manager' => array(),
67 67
 );
68 68
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Exception/MissingDependencyExceptionTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $target = new MissingDependencyException($dependency, $object, $previous);
56 56
 
57 57
         $expectedMessage = sprintf('Missing dependency "%s" in "%s"',
58
-                                   $dependency, is_object($object) ? get_class($object) : $object);
58
+                                    $dependency, is_object($object) ? get_class($object) : $object);
59 59
 
60 60
         $this->assertEquals($expectedMessage, $target->getMessage());
61 61
     }
Please login to merge, or discard this patch.
Core/test/CoreTest/Factory/Controller/Plugin/SearchFormFactoryTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
 
44 44
     public function testCreatesPluginAndInjectsFormElementManager()
45 45
     {
46
-	    $forms = $this->getMockBuilder(FormElementManager::class)
47
-		    ->disableOriginalConstructor()
48
-		    ->getMock()
49
-	    ;
50
-	    /*$services = $this->getServiceManagerMock([
46
+        $forms = $this->getMockBuilder(FormElementManager::class)
47
+            ->disableOriginalConstructor()
48
+            ->getMock()
49
+        ;
50
+        /*$services = $this->getServiceManagerMock([
51 51
 		    'forms' => [
52 52
 			    'service' => $forms,
53 53
 			    'count_get' => 1,
54 54
 		    ]]);*/
55
-	    $services = $this->getServiceManagerMock();
56
-	    $services->setService('forms',$forms);
55
+        $services = $this->getServiceManagerMock();
56
+        $services->setService('forms',$forms);
57 57
 	    
58 58
         $plugin = $this->target->__invoke($services,'irrelevant');
59 59
 
Please login to merge, or discard this patch.