Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
Jobs/test/JobsTest/Factory/Listener/LoadActiveOrganizationsFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]],
42 42
     ];
43 43
 
44
-    private $inheritance = [ FactoryInterface::class ];
44
+    private $inheritance = [FactoryInterface::class];
45 45
 	
46 46
 
47 47
     public function testServiceCreation()
Please login to merge, or discard this patch.
test/JobsTest/Factory/Paginator/ActiveOrganizationsPaginatorFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]],
43 43
     ];
44 44
 
45
-    private $inheritance = [ FactoryInterface::class ];
45
+    private $inheritance = [FactoryInterface::class];
46 46
 	
47 47
     public function testServiceCreation()
48 48
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Repository/CategoriesTest.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,16 +61,16 @@  discard block
 block discarded – undo
61 61
             ->getMock();
62 62
 
63 63
         $dm = $this->getMockBuilder(DocumentManager::class)
64
-                   ->disableOriginalConstructor()
64
+                    ->disableOriginalConstructor()
65 65
                     ->setMethods(['getEventManager'])
66
-                   ->getMock();
66
+                    ->getMock();
67 67
 
68 68
         $dm->expects($this->once())->method('getEventManager')->willReturn($evm);
69 69
 
70 70
         $persister = $this->getMockBuilder(DocumentPersister::class)
71
-                          ->disableOriginalConstructor()
72
-                          ->setMethods(['load', 'loadAll'])
73
-                          ->getMock();
71
+                            ->disableOriginalConstructor()
72
+                            ->setMethods(['load', 'loadAll'])
73
+                            ->getMock();
74 74
 
75 75
         $cursor = $this->getMockBuilder(Cursor::class)
76 76
                         ->disableOriginalConstructor()
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
         $uow->expects($this->exactly(2))->method('getDocumentPersister')->willReturn($persister);
91 91
 
92 92
         $meta = $this->getMockBuilder(ClassMetadata::class)
93
-                     ->disableOriginalConstructor()
94
-                     ->getMock();
93
+                        ->disableOriginalConstructor()
94
+                        ->getMock();
95 95
         $meta->name = 'idonotcare';
96 96
 
97 97
         return [$dm, $uow, $meta];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         Categories::class,
46 46
         'args' => false,
47 47
         'mock' => ['getService', 'store'],
48
-        '@testInheritance' => [Categories::class, 'as_reflection' => true ],
48
+        '@testInheritance' => [Categories::class, 'as_reflection' => true],
49 49
         '@testFindByCreatesDefaultCategory' => [
50 50
             'args' => 'setupTargetArgsForFindTests',
51 51
             'mock' => ['createDefaultCategory' => 2],
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/JobsTest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private $target = Job::class;
62 62
 
63
-    private $inheritance = [ MetaDataProviderInterface::class ];
63
+    private $inheritance = [MetaDataProviderInterface::class];
64 64
 
65
-    private $traits = [ MetaDataProviderTrait::class ];
65
+    private $traits = [MetaDataProviderTrait::class];
66 66
 
67 67
 
68 68
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function testSetGetPortals()
176 176
     {
177
-        $link = array('jobsintown-de','yawik');
177
+        $link = array('jobsintown-de', 'yawik');
178 178
         $this->target->setPortals($link);
179 179
         $this->assertEquals($link, $this->target->getPortals());
180 180
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
     public function provideDates()
243 243
     {
244
-        $date="2011-01-12";
244
+        $date = "2011-01-12";
245 245
         return [
246 246
             [$date, new \DateTime($date)],
247 247
             [new \DateTime($date), new \DateTime($date)],
@@ -251,12 +251,12 @@  discard block
 block discarded – undo
251 251
     public function provideSetGetStatusTestData()
252 252
     {
253 253
         return array(
254
-            array(Status::CREATED,  Status::CREATED),
255
-            array(Status::ACTIVE,   Status::ACTIVE),
256
-            array(Status::EXPIRED,  Status::EXPIRED),
257
-            array(Status::PUBLISH,  Status::PUBLISH),
254
+            array(Status::CREATED, Status::CREATED),
255
+            array(Status::ACTIVE, Status::ACTIVE),
256
+            array(Status::EXPIRED, Status::EXPIRED),
257
+            array(Status::PUBLISH, Status::PUBLISH),
258 258
             array(Status::INACTIVE, Status::INACTIVE),
259
-            array(Status::ACTIVE,   Status::ACTIVE),
259
+            array(Status::ACTIVE, Status::ACTIVE),
260 260
         );
261 261
     }
262 262
     /**
@@ -286,8 +286,8 @@  discard block
 block discarded – undo
286 286
     public function provideSetGetAtsEnabledTestData()
287 287
     {
288 288
         return array(
289
-            array(true,    true),
290
-            array(false,   false),
289
+            array(true, true),
290
+            array(false, false),
291 291
         );
292 292
     }
293 293
     /**
@@ -305,8 +305,8 @@  discard block
 block discarded – undo
305 305
     public function provideSetGetDraftTestData()
306 306
     {
307 307
         return array(
308
-            array(true,    true),
309
-            array(false,   false),
308
+            array(true, true),
309
+            array(false, false),
310 310
         );
311 311
     }
312 312
     /**
@@ -324,8 +324,8 @@  discard block
 block discarded – undo
324 324
     public function provideSetGetTemplateTestData()
325 325
     {
326 326
         return array(
327
-            array(null,           'default'),
328
-            array('mytemplate',   'mytemplate'),
327
+            array(null, 'default'),
328
+            array('mytemplate', 'mytemplate'),
329 329
         );
330 330
     }
331 331
     /**
@@ -343,9 +343,9 @@  discard block
 block discarded – undo
343 343
     public function provideIsActiveTestData()
344 344
     {
345 345
         return array(
346
-            array(true,  Status::ACTIVE, false),
346
+            array(true, Status::ACTIVE, false),
347 347
             array(false, Status::ACTIVE, true),
348
-            array(true,  Status::INACTIVE,false),
348
+            array(true, Status::INACTIVE, false),
349 349
             array(false, Status::INACTIVE, false),
350 350
         );
351 351
     }
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 
593 593
     public function testGetSnapshotGenerator()
594 594
     {
595
-        $expected =    array(
595
+        $expected = array(
596 596
             'hydrator' => '',
597 597
             'target' => 'Jobs\Entity\JobSnapshot',
598 598
             'exclude' => array('permissions', 'history')
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 
638 638
     public function setDescription($description)
639 639
     {
640
-        $this->description=$description;
640
+        $this->description = $description;
641 641
         return $this;
642 642
     }
643 643
     public function getDescription()
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     }
647 647
     public function setTest($test)
648 648
     {
649
-        $this->test=$test;
649
+        $this->test = $test;
650 650
         return $this;
651 651
     }
652 652
     public function getTest()
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/HistoryTest.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
     public function provideCreatingInstancesTestData()
51 51
     {
52 52
         return array(
53
-            array(Status::CREATED,               null       , new Status(Status::CREATED),              "[System]"),
54
-            array(Status::WAITING_FOR_APPROVAL, 'message2'  , new Status(Status::WAITING_FOR_APPROVAL), "message2"),
55
-            array(Status::REJECTED,             'message3'  , new Status(Status::REJECTED),             "message3"),
56
-            array(Status::PUBLISH,              'message4'  , new Status(Status::PUBLISH),              "message4"),
57
-            array(Status::ACTIVE,               'message5'  , new Status(Status::ACTIVE),               "message5"),
58
-            array(Status::INACTIVE,             'message6'  , new Status(Status::INACTIVE),             "message6"),
59
-            array(Status::EXPIRED,              'message7'  , new Status(Status::EXPIRED),              "message7"),
53
+            array(Status::CREATED, null, new Status(Status::CREATED), "[System]"),
54
+            array(Status::WAITING_FOR_APPROVAL, 'message2', new Status(Status::WAITING_FOR_APPROVAL), "message2"),
55
+            array(Status::REJECTED, 'message3', new Status(Status::REJECTED), "message3"),
56
+            array(Status::PUBLISH, 'message4', new Status(Status::PUBLISH), "message4"),
57
+            array(Status::ACTIVE, 'message5', new Status(Status::ACTIVE), "message5"),
58
+            array(Status::INACTIVE, 'message6', new Status(Status::INACTIVE), "message6"),
59
+            array(Status::EXPIRED, 'message7', new Status(Status::EXPIRED), "message7"),
60 60
         );
61 61
     }
62 62
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     */
97 97
     public function testSetGetDate()
98 98
     {
99
-        $date=new \DateTime("2017-02-28 11:11:11");
99
+        $date = new \DateTime("2017-02-28 11:11:11");
100 100
         $this->target->setDate($date);
101 101
 
102 102
         $this->assertEquals($date, $this->target->getDate());
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     */
109 109
     public function testSetGetMessage()
110 110
     {
111
-        $message="my message";
111
+        $message = "my message";
112 112
         $this->target->setMessage($message);
113 113
 
114 114
         $this->assertEquals($message, $this->target->getMessage());
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     */
121 121
     public function testSetGetStatus()
122 122
     {
123
-        $status=new Status(Status::CREATED);
123
+        $status = new Status(Status::CREATED);
124 124
         $this->target->setStatus($status);
125 125
         $this->assertEquals($status, $this->target->getStatus());
126 126
     }
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
     
94 94
     
95 95
     /**
96
-    * @covers \Jobs\Entity\History::setDate
97
-    * @covers \Jobs\Entity\History::getDate
98
-    */
96
+     * @covers \Jobs\Entity\History::setDate
97
+     * @covers \Jobs\Entity\History::getDate
98
+     */
99 99
     public function testSetGetDate()
100 100
     {
101 101
         $date=new \DateTime("2017-02-28 11:11:11");
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
     }
106 106
     
107 107
     /**
108
-    * @covers \Jobs\Entity\History::setMessage
109
-    * @covers \Jobs\Entity\History::getMessage
110
-    */
108
+     * @covers \Jobs\Entity\History::setMessage
109
+     * @covers \Jobs\Entity\History::getMessage
110
+     */
111 111
     public function testSetGetMessage()
112 112
     {
113 113
         $message="my message";
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
     }
118 118
     
119 119
     /**
120
-    * @covers \Jobs\Entity\History::setStatus
121
-    * @covers \Jobs\Entity\History::getStatus
122
-    */
120
+     * @covers \Jobs\Entity\History::setStatus
121
+     * @covers \Jobs\Entity\History::getStatus
122
+     */
123 123
     public function testSetGetStatus()
124 124
     {
125 125
         $status=new Status(Status::CREATED);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/AtsModeTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     public function provideBoolean()
181 181
     {
182 182
         return [
183
-            [true,true],
183
+            [true, true],
184 184
             [false, false],
185 185
             [null, false]
186 186
         ];
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
 
198 198
     public function provideArrays()
199 199
     {
200
-        $array = ['facebook','linkedin','xing'];
200
+        $array = ['facebook', 'linkedin', 'xing'];
201 201
         return [
202
-            [$array,$array],
202
+            [$array, $array],
203 203
         ];
204 204
     }
205 205
 }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/TemplateValuesTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@
 block discarded – undo
85 85
             array('setDescription', 'getDescription', 'test2'),
86 86
             array('setTitle', 'getTitle', 'test2'),
87 87
             array('setLanguage', 'getLanguage', 'test2'),
88
-            array(null , 'getRequirements', ''),
89
-            array(null , 'getBenefits', ''),
90
-            array(null , 'getQualifications', ''),
91
-            array(null , 'getTitle', ''),
92
-            array(null , 'getLanguage', 'en'),
88
+            array(null, 'getRequirements', ''),
89
+            array(null, 'getBenefits', ''),
90
+            array(null, 'getQualifications', ''),
91
+            array(null, 'getTitle', ''),
92
+            array(null, 'getLanguage', 'en'),
93 93
         );
94 94
     }
95 95
 }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/CoordinatesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function testSetGetCoordinates()
65 65
     {
66
-        $input = [50,8];
66
+        $input = [50, 8];
67 67
         $this->target->setCoordinates($input);
68 68
         $this->assertEquals($input, $this->target->getCoordinates());
69 69
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/JobSnapshotStatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         'as_reflection' => true,
36 36
     ];
37 37
 
38
-    private $inheritance = [ AbstractStatus::class ];
38
+    private $inheritance = [AbstractStatus::class];
39 39
 
40 40
     public function testStatusConstants()
41 41
     {
Please login to merge, or discard this patch.