Completed
Pull Request — master (#524)
by Mathias
21:52 queued 12:46
created
module/Jobs/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$testConfig = include __DIR__ . '/TestConfig.php';
3
+$testConfig = include __DIR__.'/TestConfig.php';
4 4
 
5
-require_once __DIR__ . '/../../../test/Bootstrap.php';
5
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Auth/Dependency/ListListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
             ->willReturn($repositories);
45 45
         
46 46
         $listListenerFactory = new ListListenerFactory();
47
-        $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator,'irrelevant'));
47
+        $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator, 'irrelevant'));
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
Factory/Controller/ApiJobListByOrganizationControllerFactoryTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
45 45
                                 ->getMock();
46 46
 
47 47
         $repositoriesMock = $this->getMockBuilder('Core\Repository\RepositoryService')
48
-                               ->disableOriginalConstructor()
49
-                               ->getMock();
48
+                                ->disableOriginalConstructor()
49
+                                ->getMock();
50 50
 
51 51
         $repositoriesMock->expects($this->once())
52
-                       ->method('get')
53
-                       ->with('Jobs/Job')
54
-                       ->willReturn($jobRepositoryMock);
52
+                        ->method('get')
53
+                        ->with('Jobs/Job')
54
+                        ->willReturn($jobRepositoryMock);
55 55
 
56 56
         $apiJobDehydratorMock = $this->getMockBuilder('Jobs\Model\ApiJobDehydrator')
57 57
                                 ->disableOriginalConstructor()
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Controller/JobboardControllerFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
             ->getMock();
47 47
 
48 48
         $repositoriesMock = $this->getMockBuilder('Core\Repository\RepositoryService')
49
-                                 ->disableOriginalConstructor()
50
-                                 ->getMock();
49
+                                    ->disableOriginalConstructor()
50
+                                    ->getMock();
51 51
 
52 52
         $repositoriesMock->expects($this->once())
53 53
             ->method('get')
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Filter/ChannelPricesFactoryTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,15 +41,15 @@
 block discarded – undo
41 41
         $provider=new ProviderOptions();
42 42
 
43 43
         $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
44
-                                   ->disableOriginalConstructor()
45
-                                   ->getMock();
44
+                                    ->disableOriginalConstructor()
45
+                                    ->getMock();
46 46
 
47 47
 
48 48
         $serviceManagerMock
49
-	        ->expects($this->once())
50
-	        ->method('get')
51
-	        ->with('Jobs/Options/Provider')
52
-	        ->willReturn($provider)
49
+            ->expects($this->once())
50
+            ->method('get')
51
+            ->with('Jobs/Options/Provider')
52
+            ->willReturn($provider)
53 53
         ;
54 54
         
55 55
         $target = new ChannelPricesFactory();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function testInvokation()
40 40
     {
41
-        $provider=new ProviderOptions();
41
+        $provider = new ProviderOptions();
42 42
 
43 43
         $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
44 44
                                    ->disableOriginalConstructor()
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         
55 55
         $target = new ChannelPricesFactory();
56 56
 
57
-        $service = $target->__invoke($serviceManagerMock,'irrelevant');
57
+        $service = $target->__invoke($serviceManagerMock, 'irrelevant');
58 58
 
59 59
         $this->assertInstanceOf('\Jobs\Filter\ChannelPrices', $service);
60 60
     }
Please login to merge, or discard this patch.
test/JobsTest/Factory/Repository/DefaultCategoriesBuilderFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         $sm = $this->getServiceManagerMock();
81 81
         $sm->setService('ApplicationConfig', $appConfig);
82 82
 
83
-        $builder = $this->target->__invoke($sm,'irrelevant');
83
+        $builder = $this->target->__invoke($sm, 'irrelevant');
84 84
 
85 85
         $this->assertAttributeSame($expectModulePath, 'moduleConfigPath', $builder);
86 86
         $this->assertAttributeSame($expectGlobalPaths, 'globalConfigPaths', $builder);
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/ActiveOrganizationSelectFactoryTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -82,16 +82,16 @@
 block discarded – undo
82 82
                 'number' => '123',
83 83
             ]);
84 84
             $repository = $this
85
-	            ->getMockBuilder(Organization::class)
86
-	            ->disableOriginalConstructor()
85
+                ->getMockBuilder(Organization::class)
86
+                ->disableOriginalConstructor()
87 87
                 ->setMethods(['find'])
88 88
                 ->getMock()
89 89
             ;
90 90
             $repository
91
-	            ->expects($this->once())
92
-	            ->method('find')
93
-	            ->with('orgId')
94
-	            ->willReturn($org)
91
+                ->expects($this->once())
92
+                ->method('find')
93
+                ->with('orgId')
94
+                ->willReturn($org)
95 95
             ;
96 96
             $repositories = $this->createPluginManagerMock(['Organizations' => $repository]);
97 97
             $services['repositories'] = $repositories;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]],
44 44
     ];
45 45
 
46
-    private $inheritance = [ FactoryInterface::class ];
46
+    private $inheritance = [FactoryInterface::class];
47 47
 
48 48
 
49 49
     public function testCreateService()
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $container = $this->getServiceManagerMock();
52 52
         $formElements = $this->getPluginManagerMock($container);
53 53
 
54
-        $this->target->__invoke($container,OrganizationSelect::class);
54
+        $this->target->__invoke($container, OrganizationSelect::class);
55 55
     }
56 56
 
57 57
     public function testServiceCreationWithoutPreSelectedOrganization()
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/MultipostingMultiCheckboxFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@
 block discarded – undo
50 50
     {
51 51
         $select = $this->getMockBuilder('Jobs\Form\MultipostingSelect')->disableOriginalConstructor()->getMock();
52 52
         $select->expects($this->once())
53
-               ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes');
53
+                ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes');
54 54
 
55 55
         $select->expects($this->once())
56
-               ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js'));
56
+                ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js'));
57 57
 
58 58
         $factory = $this->getMockBuilder('\Zend\ServiceManager\FactoryInterface')
59 59
                         ->setMethods(array('__invoke'))
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Form/InputFilter/TestJobLocationEdit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
 
53 53
     public function testTrimAndStripTagsFromJobTitle()
54 54
     {
55
-        $expected="title (m/w)";
55
+        $expected = "title (m/w)";
56 56
         $output = $this->inputFilter->getInputs();
57 57
         $filter = $output['title']->getFilterChain();
58
-        $this->assertEquals($expected,  $filter->filter(' <b>title</b> (m/w)'));
58
+        $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)'));
59 59
     }
60 60
 }
Please login to merge, or discard this patch.