Completed
Push — develop ( de8b61...91abce )
by Carsten
07:29
created
module/Jobs/test/TestConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 $commonModules = include_once __DIR__.'/../../../config/common.modules.php';
3 3
 
4 4
 return array(
5
-    'modules' => array_merge($commonModules,array(
5
+    'modules' => array_merge($commonModules, array(
6 6
         'Core',
7 7
         'Auth',
8 8
         'Jobs',
Please login to merge, or discard this patch.
module/Auth/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** @var array $testConfig */
4
-$testConfig = include __DIR__ . '/TestConfig.php';
4
+$testConfig = include __DIR__.'/TestConfig.php';
5 5
 
6
-require_once __DIR__ . '/../../../test/Bootstrap.php';
6
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.
module/Auth/test/TestConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 return array(
6 6
     // This should be an array of module namespaces used in the application.
7
-    'modules' => array_merge($commonModules,array(
7
+    'modules' => array_merge($commonModules, array(
8 8
         'Core',
9 9
 	    'Auth',
10 10
 	    'Jobs',
Please login to merge, or discard this patch.
Auth/test/AclTest/Assertion/AbstractEventManagerAwareAssertionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,9 +155,9 @@
 block discarded – undo
155 155
         $self = $this;
156 156
 
157 157
         $events->expects($this->once())->method('triggerUntil')
158
-               ->will($this->returnCallback(function ($callback,$eventName,$event) use ($acl, $role, $resource, $privilege, $self) {
158
+               ->will($this->returnCallback(function($callback, $eventName, $event) use ($acl, $role, $resource, $privilege, $self) {
159 159
                	    $self->assertTrue(is_callable($callback));
160
-	                $self->assertEquals('assert',$eventName);
160
+	                $self->assertEquals('assert', $eventName);
161 161
                     $self->assertSame($acl, $event->getAcl());
162 162
                     $self->assertSame($role, $event->getRole());
163 163
                     $self->assertSame($resource, $event->getResource());
Please login to merge, or discard this patch.
module/Auth/test/AclTest/Assertion/AssertionManagerFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                  ->willReturn(array());
39 39
 
40 40
         $target = new AssertionManagerFactory();
41
-        $manager = $target->__invoke($services,AssertionManager::class);
41
+        $manager = $target->__invoke($services, AssertionManager::class);
42 42
 
43 43
         $this->assertInstanceOf('\Acl\Assertion\AssertionManager', $manager);
44 44
         //$this->assertFalse($manager->shareByDefault(), 'The managers\' shareByDefault value must be set to FALSE by the factory.');
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
 
62 62
         $target = new AssertionManagerFactory();
63 63
 
64
-        $manager = $target->__invoke($services,AssertionManager::class);
64
+        $manager = $target->__invoke($services, AssertionManager::class);
65 65
 
66
-        $this->assertTrue($testResult === $manager->has($testName), 'Expected managers\' has method to return ' . ($testResult ? 'TRUE' : 'FALSE') . ' on ' .$testName);
66
+        $this->assertTrue($testResult === $manager->has($testName), 'Expected managers\' has method to return '.($testResult ? 'TRUE' : 'FALSE').' on '.$testName);
67 67
     }
68 68
 
69 69
     public function provideConfigArrays()
Please login to merge, or discard this patch.
Auth/test/AuthTest/Factory/Controller/RemoveControllerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,6 +49,6 @@
 block discarded – undo
49 49
             ]));
50 50
         
51 51
         $controllerFactory = new RemoveControllerFactory();
52
-        $this->assertInstanceOf(RemoveController::class, $controllerFactory($serviceLocator,'irrelevant'));
52
+        $this->assertInstanceOf(RemoveController::class, $controllerFactory($serviceLocator, 'irrelevant'));
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
Auth/test/AuthTest/Factory/Controller/Plugin/UserSwitcherFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
     private $target = [
40 40
         UserSwitcherFactory::class,
41 41
         '@testCreateServiceInvokesItself' => [
42
-            'mock' => [ '__invoke' ],
42
+            'mock' => ['__invoke'],
43 43
         ],
44 44
     ];
45 45
 
46
-    private $inheritance = [ FactoryInterface::class ];
46
+    private $inheritance = [FactoryInterface::class];
47 47
 
48 48
     public function testCreateServiceInvokesItself()
49 49
     {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $auth = $this->getMockBuilder(AuthenticationService::class)->disableOriginalConstructor()->getMock();
64 64
         $acl = $this->getMockBuilder(Acl::class)->disableOriginalConstructor()->getMock();
65 65
         $sm = $this->createServiceManagerMock();
66
-        $controllerPlugins = $this->getPluginManagerMock(['Acl' => ['service' => $acl, 'count_get' => 1]],$sm);
66
+        $controllerPlugins = $this->getPluginManagerMock(['Acl' => ['service' => $acl, 'count_get' => 1]], $sm);
67 67
         $container = $this->getServiceManagerMock([
68 68
                 'AuthenticationService' => ['service' => $auth, 'count_get' => 1],
69 69
                 'ControllerPluginManager' => ['service' => $controllerPlugins, 'count_get' => 1]
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Factory/View/Helper/AuthFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         
27 27
         $hm = new HelperPluginManager($sm);
28 28
         
29
-        $helper = $f->__invoke($sm,Auth::class);
29
+        $helper = $f->__invoke($sm, Auth::class);
30 30
         
31 31
         $this->assertInstanceOf('\Auth\View\Helper\Auth', $helper);
32 32
         $this->assertSame($auth, $helper->getService());
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Controller/ManageControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 			->disableOriginalConstructor()
36 36
 			->getMock()
37 37
 		;
38
-		$this->setMockToServiceLocator('HybridAuthAdapter',$this->hybridAuthAdapter);
38
+		$this->setMockToServiceLocator('HybridAuthAdapter', $this->hybridAuthAdapter);
39 39
 	}
40 40
 	
41 41
 	public function testAccessWhenNotLoggedIn()
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	public function testAccessWhenLoggedIn()
53 53
 	{
54 54
 		$this->authenticateUser();
55
-		$this->dispatch(self::URL_MY_PROFILE,Request::METHOD_GET);
55
+		$this->dispatch(self::URL_MY_PROFILE, Request::METHOD_GET);
56 56
 		$result = $this->getResponse()->getContent();
57 57
 		$this->assertNotRedirect();
58 58
 		$this->assertResponseStatusCode(Response::STATUS_CODE_200);
Please login to merge, or discard this patch.