Passed
Push — master ( 793370...b09d10 )
by Carsten
12:59
created
module/Jobs/test/JobsTest/Factory/Form/MultipostingSelectFactoryTest.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -46,19 +46,19 @@  discard block
 block discarded – undo
46 46
         $channelOptions  = new ChannelOptions();
47 47
 
48 48
         $channelOptions->setCategory('testCat')
49
-                       ->setCurrency('€')
50
-                       ->setDescription('testDesc')
51
-                       ->setExternalkey('testExtKey')
52
-                       ->setHeadLine('testHL')
53
-                       ->setKey('testKey')
54
-                       ->setLabel('testLabel')
55
-                       ->setLinkText('testLinkTxt')
56
-                       ->setLogo('testLogo')
57
-                       ->setParams(array('test' => 'params'))
58
-                       ->setPrice('test', 1234)
59
-                       ->setPublishDuration(10)
60
-                       ->setRoute('testRoute')
61
-                       ->setTax(19);
49
+                        ->setCurrency('€')
50
+                        ->setDescription('testDesc')
51
+                        ->setExternalkey('testExtKey')
52
+                        ->setHeadLine('testHL')
53
+                        ->setKey('testKey')
54
+                        ->setLabel('testLabel')
55
+                        ->setLinkText('testLinkTxt')
56
+                        ->setLogo('testLogo')
57
+                        ->setParams(array('test' => 'params'))
58
+                        ->setPrice('test', 1234)
59
+                        ->setPublishDuration(10)
60
+                        ->setRoute('testRoute')
61
+                        ->setTax(19);
62 62
 
63 63
         $providerOptions->addChannel($channelOptions);
64 64
 
@@ -66,35 +66,35 @@  discard block
 block discarded – undo
66 66
         $currencyFormat->expects($this->any())->method('__invoke')->will($this->returnArgument(0));
67 67
 
68 68
         $helpers = $this
69
-	        ->getMockBuilder('\Zend\ServiceManager\AbstractPluginManager')
70
-	        ->disableOriginalConstructor()
71
-	        ->setMethods(array('get'))
72
-			->getMockForAbstractClass()
69
+            ->getMockBuilder('\Zend\ServiceManager\AbstractPluginManager')
70
+            ->disableOriginalConstructor()
71
+            ->setMethods(array('get'))
72
+            ->getMockForAbstractClass()
73 73
         ;
74 74
 
75 75
         $helpers
76
-	        ->expects($this->once())
77
-	        ->method('get')
78
-	        ->with('currencyFormat')
79
-	        ->willReturn($currencyFormat)
76
+            ->expects($this->once())
77
+            ->method('get')
78
+            ->with('currencyFormat')
79
+            ->willReturn($currencyFormat)
80 80
         ;
81 81
 
82 82
         $router = $this
83
-	        ->getMockBuilder('\Zend\Mvc\Router\SimpleRouteStack')
84
-	        ->disableOriginalConstructor()
85
-	        ->setMethods(['assemble'])
86
-	        ->getMock()
83
+            ->getMockBuilder('\Zend\Mvc\Router\SimpleRouteStack')
84
+            ->disableOriginalConstructor()
85
+            ->setMethods(['assemble'])
86
+            ->getMock()
87 87
         ;
88 88
         $router
89
-	        ->expects($this->any())
90
-	        ->method('assemble')
91
-	        ->willReturn('/test/uri')
89
+            ->expects($this->any())
90
+            ->method('assemble')
91
+            ->willReturn('/test/uri')
92 92
         ;
93 93
 
94 94
         $services = $this
95
-	        ->getMockBuilder('\Zend\ServiceManager\ServiceManager')
96
-	        ->disableOriginalConstructor()
97
-	        ->getMock()
95
+            ->getMockBuilder('\Zend\ServiceManager\ServiceManager')
96
+            ->disableOriginalConstructor()
97
+            ->getMock()
98 98
         ;
99 99
 
100 100
         $servicesMap = array(
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
         );
105 105
 
106 106
         $services->expects($this->exactly(3))
107
-                 ->method('get')
108
-                 ->will($this->returnValueMap($servicesMap))
107
+                    ->method('get')
108
+                    ->will($this->returnValueMap($servicesMap))
109 109
         ;
110 110
 
111 111
         $target = new MultipostingSelectFactory();
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/HiringOrganizationSelectFactoryTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      */
52 52
     private $formElements;
53 53
 	
54
-	/**
55
-	 * @var ContainerInterface
56
-	 */
54
+    /**
55
+     * @var ContainerInterface
56
+     */
57 57
     private $services;
58 58
 
59 59
     public function setUp()
@@ -76,21 +76,21 @@  discard block
 block discarded – undo
76 76
         $this->user = $user;
77 77
 
78 78
         $auth = $this->getMockBuilder('Auth\AuthenticationService')
79
-                     ->disableOriginalConstructor()
80
-                     ->getMock();
79
+                        ->disableOriginalConstructor()
80
+                        ->getMock();
81 81
 
82 82
         $auth->expects($this->once())
83
-             ->method('getUser')
84
-             ->willReturn($user);
83
+                ->method('getUser')
84
+                ->willReturn($user);
85 85
 
86 86
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
87
-                         ->disableOriginalConstructor()
88
-                         ->getMock();
87
+                            ->disableOriginalConstructor()
88
+                            ->getMock();
89 89
 
90 90
         $services->expects($this->once())
91
-                 ->method('get')
92
-                 ->with('AuthenticationService')
93
-                 ->willReturn($auth);
91
+                    ->method('get')
92
+                    ->with('AuthenticationService')
93
+                    ->willReturn($auth);
94 94
 	    
95 95
         $this->services = $services;
96 96
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/View/Helper/JobUrlFactoryTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -61,16 +61,16 @@
 block discarded – undo
61 61
                     array('serverUrl')
62 62
                 )
63 63
                 ->will($this->onConsecutiveCalls($urlHelper, $paramsHelper, $serverUrl));
64
-		$sm = $this
65
-			->getMockBuilder(ServiceManager::class)
66
-			->disableOriginalConstructor()
67
-			->getMock()
68
-		;
69
-		$sm->expects($this->once())
70
-			->method('get')
71
-			->with('ViewHelperManager')
72
-			->willReturn($helpers)
73
-		;
64
+        $sm = $this
65
+            ->getMockBuilder(ServiceManager::class)
66
+            ->disableOriginalConstructor()
67
+            ->getMock()
68
+        ;
69
+        $sm->expects($this->once())
70
+            ->method('get')
71
+            ->with('ViewHelperManager')
72
+            ->willReturn($helpers)
73
+        ;
74 74
         $service = $target->__invoke($sm,'irrelevant');
75 75
 
76 76
         $this->assertInstanceOf('\Jobs\View\Helper\JobUrl', $service);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/View/Helper/ApplyUrlFactoryTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@
 block discarded – undo
63 63
                 ->will($this->onConsecutiveCalls($urlHelper, $translateHelper, $paramsHelper, $serverUrl));
64 64
 		
65 65
         $sm = $this->getMockBuilder(ServiceManager::class)
66
-	        ->disableOriginalConstructor()
67
-	        ->getMock();
68
-	    $sm->expects($this->once())
69
-		    ->method('get')
70
-		    ->with('ViewHelperManager')
71
-		    ->willReturn($helpers);
66
+            ->disableOriginalConstructor()
67
+            ->getMock();
68
+        $sm->expects($this->once())
69
+            ->method('get')
70
+            ->with('ViewHelperManager')
71
+            ->willReturn($helpers);
72 72
 	    
73 73
         $service = $target->__invoke($sm,'irrelevant');
74 74
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/View/Helper/AdminEditLinkFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
             ->getMock();
58 58
 
59 59
         $urlHelper
60
-	        ->expects($this->once())
61
-	        ->method('__invoke')
60
+            ->expects($this->once())
61
+            ->method('__invoke')
62 62
             ->with(null, [], ['query' => $query->toArray()], true)
63 63
             ->willReturn('returnUrl')
64 64
         ;
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Service/JobsPublisherFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
     {
32 32
         $this->testedObj = new JobsPublisherFactory();
33 33
         $this->mockJobsOptions = $this->getMockBuilder('Jobs\Options\ModuleOptions')
34
-                     ->disableOriginalConstructor()
35
-                     ->getMock();
34
+                        ->disableOriginalConstructor()
35
+                        ->getMock();
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Listener/DeleteJobFactoryTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,15 +50,15 @@
 block discarded – undo
50 50
         $acl = new Acl();
51 51
         $user = new User();
52 52
         $auth = $this
53
-	        ->getMockBuilder(AuthenticationService::class)
53
+            ->getMockBuilder(AuthenticationService::class)
54 54
             ->disableOriginalConstructor()
55 55
             ->setMethods(['getUser'])
56 56
             ->getMock()
57 57
         ;
58 58
 
59 59
         $auth->expects($this->once())
60
-             ->method('getUser')
61
-             ->will($this->returnValue($user))
60
+                ->method('getUser')
61
+                ->will($this->returnValue($user))
62 62
         ;
63 63
 
64 64
         $repository = $this->getMockBuilder(Job::class)->disableOriginalConstructor()->getMock();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Listener/MailSenderFactoryTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
         ));
44 44
 
45 45
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
46
-                         ->disableOriginalConstructor()
47
-                         ->getMock();
46
+                            ->disableOriginalConstructor()
47
+                            ->getMock();
48 48
 
49 49
         $services->expects($this->exactly(3))
50
-                 ->method('get')
51
-                 ->withConsecutive(
50
+                    ->method('get')
51
+                    ->withConsecutive(
52 52
                     array('Core/MailService'),
53 53
                     array('Jobs/Options'),
54 54
                     array('Core/Options')
55
-                 )
56
-                 ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
55
+                    )
56
+                    ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
57 57
 
58 58
         $expectedOptions = array(
59 59
             'siteName' => $coreOptions->getSiteName(),
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Model/ApiJobDehydratorFactoryTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@
 block discarded – undo
55 55
                 ->willReturn($urlHelper);
56 56
 
57 57
         $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
58
-                                   ->disableOriginalConstructor()
59
-                                   ->getMock();
58
+                                    ->disableOriginalConstructor()
59
+                                    ->getMock();
60 60
 
61 61
         $serviceManagerMock->expects($this->once())->method('get')
62
-                           ->with('ViewHelperManager')
63
-                           ->willReturn($helpers);
62
+                            ->with('ViewHelperManager')
63
+                            ->willReturn($helpers);
64 64
 
65 65
         $service = $target->__invoke($serviceManagerMock,'irrelevant');
66 66
 
Please login to merge, or discard this patch.