Passed
Push — develop ( fcad5b...722a36 )
by Mathias
18:06 queued 09:30
created
module/Jobs/test/JobsTest/Repository/CategoriesTest.php 1 patch
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.
module/Jobs/test/JobsTest/Entity/HistoryTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
     
92 92
     
93 93
     /**
94
-    * @covers Jobs\Entity\History::setDate
95
-    * @covers Jobs\Entity\History::getDate
96
-    */
94
+     * @covers Jobs\Entity\History::setDate
95
+     * @covers Jobs\Entity\History::getDate
96
+     */
97 97
     public function testSetGetDate()
98 98
     {
99 99
         $date=new \DateTime("2017-02-28 11:11:11");
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
     }
104 104
     
105 105
     /**
106
-    * @covers Jobs\Entity\History::setMessage
107
-    * @covers Jobs\Entity\History::getMessage
108
-    */
106
+     * @covers Jobs\Entity\History::setMessage
107
+     * @covers Jobs\Entity\History::getMessage
108
+     */
109 109
     public function testSetGetMessage()
110 110
     {
111 111
         $message="my message";
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     }
116 116
     
117 117
     /**
118
-    * @covers Jobs\Entity\History::setStatus
119
-    * @covers Jobs\Entity\History::getStatus
120
-    */
118
+     * @covers Jobs\Entity\History::setStatus
119
+     * @covers Jobs\Entity\History::getStatus
120
+     */
121 121
     public function testSetGetStatus()
122 122
     {
123 123
         $status=new Status(Status::CREATED);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/AtsModeFieldsetTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
     public function testInitialization()
83 83
     {
84 84
         $target = $this->getMockBuilder('\Jobs\Form\AtsModeFieldset')
85
-                       ->disableOriginalConstructor()
86
-                       ->setMethods(array('add', 'setName'))
87
-                       ->getMock();
85
+                        ->disableOriginalConstructor()
86
+                        ->setMethods(array('add', 'setName'))
87
+                        ->getMock();
88 88
 
89 89
         $target->expects($this->once())->method('setName')->with('atsMode');
90 90
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         ];
151 151
 
152 152
         $target->expects($this->exactly(5))->method('add')
153
-               ->withConsecutive(
153
+                ->withConsecutive(
154 154
                     array($addSelect), array($addUri), array($addEmail), array($addOneClickApply), array($addOneClickApplyProfiles)
155 155
                 );
156 156
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/AtsModeTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
     {
43 43
         /* @var $target AtsMode */
44 44
         $target = $this->getMockBuilder('\Jobs\Form\AtsMode')
45
-                       ->disableOriginalConstructor()
46
-                       ->setMethods(array('addBaseFieldset', 'addButtonsFieldset'))
47
-                       ->getMock();
45
+                        ->disableOriginalConstructor()
46
+                        ->setMethods(array('addBaseFieldset', 'addButtonsFieldset'))
47
+                        ->getMock();
48 48
 
49 49
         $target->init();
50 50
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterPersonalTest.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterPersonalFieldset')
29
-                       ->setMethods(array('add', 'parentInit'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'parentInit'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type'       => 'Radio',
34
-                 'name'       => 'by',
35
-                 'options'    => array(
36
-                     'value_options' => array(
37
-                         'all' => /*@translate*/ 'Show all jobs',
38
-                         'me'  => /*@translate*/ 'Show my jobs',
39
-                     ),
40
-                 ),
41
-                 'attributes' => array(
42
-                     'value' => 'all',
43
-                 )
34
+                    'name'       => 'by',
35
+                    'options'    => array(
36
+                        'value_options' => array(
37
+                            'all' => /*@translate*/ 'Show all jobs',
38
+                            'me'  => /*@translate*/ 'Show my jobs',
39
+                        ),
40
+                    ),
41
+                    'attributes' => array(
42
+                        'value' => 'all',
43
+                    )
44 44
         ];
45 45
 
46 46
         $add2 = [
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
         ];
60 60
 
61 61
         $target->expects($this->exactly(2))
62
-               ->method('add')
63
-               ->withConsecutive(
64
-                   [$add1],
65
-                   [$add2]
66
-               )->will($this->returnSelf());
62
+                ->method('add')
63
+                ->withConsecutive(
64
+                    [$add1],
65
+                    [$add2]
66
+                )->will($this->returnSelf());
67 67
 
68 68
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
69 69
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ClassificationsFieldsetTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
         $strategy = new DefaultStrategy();
53 53
         $select->setHydratorStrategy($strategy);
54 54
         $formElements = $this
55
-	        ->getMockBuilder(FormElementManagerV3Polyfill::class)
56
-	        ->disableOriginalConstructor()
57
-	        ->setMethods(['get'])
58
-	        ->getMock()
55
+            ->getMockBuilder(FormElementManagerV3Polyfill::class)
56
+            ->disableOriginalConstructor()
57
+            ->setMethods(['get'])
58
+            ->getMock()
59 59
         ;
60 60
         $formElements
61
-	        ->expects($this->exactly(3))
62
-	        ->method('get')
63
-	        ->withConsecutive(
61
+            ->expects($this->exactly(3))
62
+            ->method('get')
63
+            ->withConsecutive(
64 64
                     [
65 65
                         'Core/Tree/Select',
66 66
                         [
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                         ]
119 119
                     ]
120 120
             )
121
-	        ->willReturn($select)
121
+            ->willReturn($select)
122 122
         ;
123 123
         $this->target->expects($this->exactly(3))->method('add')->with($select);
124 124
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     public function testInit()
37 37
     {
38 38
         $target = $this->getMockBuilder('\Jobs\Form\ListFilter')
39
-                       ->setMethods(array('add', 'setName', 'setAttributes'))
40
-                       ->disableOriginalConstructor()
41
-                       ->getMock();
39
+                        ->setMethods(array('add', 'setName', 'setAttributes'))
40
+                        ->disableOriginalConstructor()
41
+                        ->getMock();
42 42
 
43 43
         $add1 = [
44 44
             'type'    => 'Jobs/ListFilterBaseFieldset',
@@ -49,19 +49,19 @@  discard block
 block discarded – undo
49 49
         ];
50 50
 
51 51
         $target->expects($this->exactly(2))
52
-               ->method('add')
53
-               ->withConsecutive(
54
-                   array($add1),
55
-                   array($add2)
56
-               )->will($this->returnSelf());
52
+                ->method('add')
53
+                ->withConsecutive(
54
+                    array($add1),
55
+                    array($add2)
56
+                )->will($this->returnSelf());
57 57
 
58 58
         $target->expects($this->once())->method('setName')->with('jobs-list-filter');
59 59
         $target->expects($this->once())
60 60
             ->method('setAttributes')
61 61
             ->with([
62
-                       'id' => 'jobs-list-filter',
63
-                       'data-handle-by' => 'native'
64
-                   ]);
62
+                        'id' => 'jobs-list-filter',
63
+                        'data-handle-by' => 'native'
64
+                    ]);
65 65
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilter */
66 66
         $target->init();
67 67
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterAdminTest.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -26,28 +26,28 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterAdminFieldset')
29
-                       ->setMethods(array('add', 'parentInit'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'parentInit'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type'       => 'Select',
34
-                 'name'       => 'status',
35
-                 'options'    => array(
36
-                     'value_options' => array(
37
-                         'all' => 'All',
38
-                         Status::ACTIVE => 'Active',
39
-                         Status::INACTIVE => 'Inactive',
40
-                         Status::CREATED => 'Created',
41
-                         Status::PUBLISH => 'Published',
42
-                         Status::REJECTED => 'Rejected',
43
-                         Status::EXPIRED =>  'Expired',
44
-                     )
45
-                 ),
46
-                 'attributes' => array(
47
-                     'value' => Status::CREATED,
48
-                     'data-searchbox'  => -1,  // hide the search box
49
-                     'data-allowclear' => 'false', // allow to clear a selected value
50
-                 )
34
+                    'name'       => 'status',
35
+                    'options'    => array(
36
+                        'value_options' => array(
37
+                            'all' => 'All',
38
+                            Status::ACTIVE => 'Active',
39
+                            Status::INACTIVE => 'Inactive',
40
+                            Status::CREATED => 'Created',
41
+                            Status::PUBLISH => 'Published',
42
+                            Status::REJECTED => 'Rejected',
43
+                            Status::EXPIRED =>  'Expired',
44
+                        )
45
+                    ),
46
+                    'attributes' => array(
47
+                        'value' => Status::CREATED,
48
+                        'data-searchbox'  => -1,  // hide the search box
49
+                        'data-allowclear' => 'false', // allow to clear a selected value
50
+                    )
51 51
         ];
52 52
 
53 53
         $add2 = [
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
         ];
64 64
 
65 65
         $target->expects($this->exactly(2))
66
-               ->method('add')
67
-               ->withConsecutive(
68
-                   [$add1],
69
-                   [$add2]
70
-               )->will($this->returnSelf());
66
+                ->method('add')
67
+                ->withConsecutive(
68
+                    [$add1],
69
+                    [$add2]
70
+                )->will($this->returnSelf());
71 71
 
72 72
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
73 73
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CompanyNameFieldsetTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     public function setUp()
33 33
     {
34 34
         $this->target = $this->getMockBuilder('\Jobs\Form\CompanyNameFieldset')
35
-                             ->disableOriginalConstructor()
36
-                             ->setMethods(array('setAttribute', 'setName', 'add'))
37
-                             ->getMock();
35
+                                ->disableOriginalConstructor()
36
+                                ->setMethods(array('setAttribute', 'setName', 'add'))
37
+                                ->getMock();
38 38
     }
39 39
 
40 40
     /**
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
     public function testInitialization()
52 52
     {
53 53
         $this->target->expects($this->once())
54
-                     ->method('setAttribute')
55
-                     ->with('id', 'jobcompanyname-fieldset');
54
+                        ->method('setAttribute')
55
+                        ->with('id', 'jobcompanyname-fieldset');
56 56
 
57 57
         $this->target->expects($this->once())
58
-                     ->method('setName')
59
-                     ->with('jobCompanyName');
58
+                        ->method('setName')
59
+                        ->with('jobCompanyName');
60 60
 
61 61
         $addParam1 = array(
62 62
             'type' => 'Jobs/HiringOrganizationSelect',
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
             ];
92 92
 
93 93
         $this->target->expects($this->exactly(2))
94
-                     ->method('add')
95
-                     ->withConsecutive(
94
+                        ->method('add')
95
+                        ->withConsecutive(
96 96
                         [$addParam1],
97 97
                         [$addParam2]
98 98
                     );
Please login to merge, or discard this patch.