Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
module/Jobs/test/JobsTest/Options/ChannelOptionsTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function testSetGetLabel()
33 33
     {
34
-        $label="Jobsintown";
34
+        $label = "Jobsintown";
35 35
 
36 36
         $this->options->setLabel($label);
37 37
         $this->assertEquals($label, $this->options->getLabel());
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function testSetGetKey()
45 45
     {
46
-        $key="jobsintown";
46
+        $key = "jobsintown";
47 47
 
48 48
         $this->options->setKey($key);
49 49
         $this->assertEquals($key, $this->options->getKey());
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function testSetGetPrice()
57 57
     {
58
-        $key='test';
59
-        $price=199;
58
+        $key = 'test';
59
+        $price = 199;
60 60
         $this->options->setPrice($key, $price);
61 61
         $this->assertEquals($price, $this->options->getPrice($key));
62 62
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function testSetGetTax()
85 85
     {
86
-        $tax='21';
86
+        $tax = '21';
87 87
 
88 88
         $this->options->setTax($tax);
89 89
         $this->assertEquals($tax, $this->options->getTax());
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function testSetGetCurrency()
97 97
     {
98
-        $currency="EUR";
98
+        $currency = "EUR";
99 99
 
100 100
         $this->options->setCurrency($currency);
101 101
         $this->assertEquals($currency, $this->options->getCurrency());
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function testSetGetPublishDuration()
109 109
     {
110
-        $days=60;
110
+        $days = 60;
111 111
 
112 112
         $this->options->setPublishDuration($days);
113 113
         $this->assertEquals($days, $this->options->getPublishDuration());
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function testSetGetExternalKey()
121 121
     {
122
-        $key="1234";
122
+        $key = "1234";
123 123
 
124 124
         $this->options->setExternalkey($key);
125 125
         $this->assertEquals($key, $this->options->getExternalkey());
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function testSetGetCategory()
133 133
     {
134
-        $category="Technical Jobs";
134
+        $category = "Technical Jobs";
135 135
 
136 136
         $this->options->setCategory($category);
137 137
         $this->assertEquals($category, $this->options->getCategory());
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function testSetGetHeadline()
145 145
     {
146
-        $headline="Post Jobs on YAWIK";
146
+        $headline = "Post Jobs on YAWIK";
147 147
 
148 148
         $this->options->setHeadLine($headline);
149 149
         $this->assertEquals($headline, $this->options->getHeadLine());
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function testSetGetDescription()
157 157
     {
158
-        $description="Post Jobs on YAWIK";
158
+        $description = "Post Jobs on YAWIK";
159 159
 
160 160
         $this->options->setDescription($description);
161 161
         $this->assertEquals($description, $this->options->getDescription());
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function testSetGetLinkText()
169 169
     {
170
-        $linkText="YAWIK";
170
+        $linkText = "YAWIK";
171 171
 
172 172
         $this->options->setLinkText($linkText);
173 173
         $this->assertEquals($linkText, $this->options->getLinkText());
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function testSetGetRoute()
181 181
     {
182
-        $route="YAWIK";
182
+        $route = "YAWIK";
183 183
 
184 184
         $this->options->setRoute($route);
185 185
         $this->assertEquals($route, $this->options->getRoute());
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function testSetGetParams()
193 193
     {
194
-        $p=array(
194
+        $p = array(
195 195
                     'view' => 'jobs-publish-on-jobsintown'
196 196
         );
197 197
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      */
206 206
     public function testSetGetLogo()
207 207
     {
208
-        $input="test.logo.gif";
208
+        $input = "test.logo.gif";
209 209
         $this->options->setLogo($input);
210 210
         $this->assertEquals($input, $this->options->getLogo());
211 211
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/OrganizationSelectTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function testSetAndGetHeadscripts()
53 53
     {
54
-        $this->assertEquals([ 'modules/Jobs/js/form.organization-select.js' ], $this->target->getHeadscripts());
55
-        $this->assertSame($this->target, $this->target->setHeadscripts([ 'script1' ]), 'Fluent interface broken on "setHeadscripts"');
56
-        $this->assertEquals([ 'script1' ], $this->target->getHeadscripts());
54
+        $this->assertEquals(['modules/Jobs/js/form.organization-select.js'], $this->target->getHeadscripts());
55
+        $this->assertSame($this->target, $this->target->setHeadscripts(['script1']), 'Fluent interface broken on "setHeadscripts"');
56
+        $this->assertEquals(['script1'], $this->target->getHeadscripts());
57 57
     }
58 58
 
59 59
     public function testSetsDefaultAttributesOnInit()
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         ]);
79 79
 
80 80
         return [
81
-            [ [ $org1 ], false ],
82
-            [ [ $org1 ], true ],
81
+            [[$org1], false],
82
+            [[$org1], true],
83 83
         ];
84 84
     }
85 85
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CustomerNoteTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     private $target = CustomerNote::class;
30 30
 
31
-    private $inheritance = [ SummaryForm::class ];
31
+    private $inheritance = [SummaryForm::class];
32 32
 
33 33
     private $attributes = [
34 34
         'baseFieldset' => 'Jobs/CustomerNoteFieldset',
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/BaseFieldsetTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         ],
35 35
     ];
36 36
 
37
-    private $inheritance = [ Fieldset::class ];
37
+    private $inheritance = [Fieldset::class];
38 38
 
39 39
     public function testInitialize()
40 40
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterPersonalTest.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 {
20 20
     public function testConstructor()
21 21
     {
22
-        $target= new ListFilterPersonalFieldset();
22
+        $target = new ListFilterPersonalFieldset();
23 23
         $this->assertInstanceOf('Jobs\Form\ListFilterPersonalFieldset', $target);
24 24
     }
25 25
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CustomerNoteFieldsetTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         ],
40 40
     ];
41 41
 
42
-    private $inheritance = [ MetaDataFieldset::class, ViewPartialProviderInterface::class ];
42
+    private $inheritance = [MetaDataFieldset::class, ViewPartialProviderInterface::class];
43 43
 
44 44
     private $attributes = [
45 45
         'defaultPartial' => 'jobs/form/customer-note'
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ClassificationsFieldsetTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
     private $target = [
37 37
         ClassificationsFieldset::class,
38 38
         '@testInitialize' => [
39
-            'mock' => ['setName' => ['with' => 'classifications'], 'add' ],
39
+            'mock' => ['setName' => ['with' => 'classifications'], 'add'],
40 40
         ],
41 41
     ];
42 42
 
43
-    private $inheritance = [ Fieldset::class ];
43
+    private $inheritance = [Fieldset::class];
44 44
 
45 45
     private $properties = [
46
-        ['hydrator', ['ignore_setter' => true, 'ignore_getter' => true, 'default@' => EntityHydrator::class ]],
46
+        ['hydrator', ['ignore_setter' => true, 'ignore_getter' => true, 'default@' => EntityHydrator::class]],
47 47
     ];
48 48
 
49 49
     public function testInitialize()
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.