Skip to content

Commit 7dfce84

Browse files
yajragithub-actions[bot]
authored andcommitted
fix: pint 🤖
1 parent 2418a01 commit 7dfce84

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/Html/Extensions/ColumnControlTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function it_can_set_column_control_options_on_builder()
1515
$builder = $this->getHtmlBuilder();
1616
$options = [
1717
'target' => 0,
18-
'content' => ['search', 'order']
18+
'content' => ['search', 'order'],
1919
];
2020

2121
$result = $builder->columnControl($options);
@@ -30,7 +30,7 @@ public function it_can_set_column_control_options_on_column()
3030
$column = Column::make('name');
3131
$options = [
3232
'target' => 'thead:0',
33-
'content' => ['search']
33+
'content' => ['search'],
3434
];
3535

3636
$result = $column->columnControl($options);
@@ -50,7 +50,7 @@ public function it_can_add_column_control_header()
5050

5151
$this->assertInstanceOf(Builder::class, $result);
5252
$expected = [
53-
['target' => 'thead:1', 'content' => $content]
53+
['target' => 'thead:1', 'content' => $content],
5454
];
5555
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
5656
}
@@ -65,7 +65,7 @@ public function it_can_add_column_control_header_with_default_target()
6565

6666
$this->assertInstanceOf(Builder::class, $result);
6767
$expected = [
68-
['target' => 'thead:0', 'content' => $content]
68+
['target' => 'thead:0', 'content' => $content],
6969
];
7070
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
7171
}
@@ -81,7 +81,7 @@ public function it_can_add_column_control_footer()
8181

8282
$this->assertInstanceOf(Builder::class, $result);
8383
$expected = [
84-
['target' => 'tfoot:2', 'content' => $content]
84+
['target' => 'tfoot:2', 'content' => $content],
8585
];
8686
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
8787
}
@@ -96,7 +96,7 @@ public function it_can_add_column_control_footer_with_default_target()
9696

9797
$this->assertInstanceOf(Builder::class, $result);
9898
$expected = [
99-
['target' => 'tfoot:0', 'content' => $content]
99+
['target' => 'tfoot:0', 'content' => $content],
100100
];
101101
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
102102
}
@@ -110,7 +110,7 @@ public function it_can_add_column_control_footer_search()
110110

111111
$this->assertInstanceOf(Builder::class, $result);
112112
$expected = [
113-
['target' => 'tfoot', 'content' => [['search']]]
113+
['target' => 'tfoot', 'content' => [['search']]],
114114
];
115115
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
116116
}
@@ -125,7 +125,7 @@ public function it_can_add_column_control_footer_search_with_custom_content()
125125

126126
$this->assertInstanceOf(Builder::class, $result);
127127
$expected = [
128-
['target' => 'tfoot', 'content' => [['customSearch']]]
128+
['target' => 'tfoot', 'content' => [['customSearch']]],
129129
];
130130
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
131131
}
@@ -140,7 +140,7 @@ public function it_can_add_column_control_search_dropdown()
140140

141141
$this->assertInstanceOf(Builder::class, $result);
142142
$expected = [
143-
['target' => 1, 'content' => ['order', 'searchDropdown']]
143+
['target' => 1, 'content' => ['order', 'searchDropdown']],
144144
];
145145
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
146146

@@ -158,7 +158,7 @@ public function it_can_add_column_control_search_dropdown_with_default_target()
158158

159159
$this->assertInstanceOf(Builder::class, $result);
160160
$expected = [
161-
['target' => 0, 'content' => ['order', 'searchDropdown']]
161+
['target' => 0, 'content' => ['order', 'searchDropdown']],
162162
];
163163
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
164164
}
@@ -174,7 +174,7 @@ public function it_can_add_column_control_search()
174174

175175
$this->assertInstanceOf(Builder::class, $result);
176176
$expected = [
177-
['target' => 2, 'content' => $content]
177+
['target' => 2, 'content' => $content],
178178
];
179179
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
180180
}
@@ -188,7 +188,7 @@ public function it_can_add_column_control_search_with_defaults()
188188

189189
$this->assertInstanceOf(Builder::class, $result);
190190
$expected = [
191-
['target' => 1, 'content' => ['search']]
191+
['target' => 1, 'content' => ['search']],
192192
];
193193
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
194194
}
@@ -203,7 +203,7 @@ public function it_can_add_column_control_spacer()
203203

204204
$this->assertInstanceOf(Builder::class, $result);
205205
$expected = [
206-
['target' => 3, 'content' => [['extend' => 'spacer']]]
206+
['target' => 3, 'content' => [['extend' => 'spacer']]],
207207
];
208208
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
209209
}
@@ -217,7 +217,7 @@ public function it_can_add_column_control_spacer_with_default_target()
217217

218218
$this->assertInstanceOf(Builder::class, $result);
219219
$expected = [
220-
['target' => 1, 'content' => [['extend' => 'spacer']]]
220+
['target' => 1, 'content' => [['extend' => 'spacer']]],
221221
];
222222
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
223223
}
@@ -233,7 +233,7 @@ public function it_can_add_column_control_title_with_string()
233233

234234
$this->assertInstanceOf(Builder::class, $result);
235235
$expected = [
236-
['target' => 2, 'content' => [['extend' => 'title', 'text' => 'My Title']]]
236+
['target' => 2, 'content' => [['extend' => 'title', 'text' => 'My Title']]],
237237
];
238238
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
239239
}
@@ -249,7 +249,7 @@ public function it_can_add_column_control_title_with_array()
249249

250250
$this->assertInstanceOf(Builder::class, $result);
251251
$expected = [
252-
['target' => 3, 'content' => [['extend' => 'title', 'text' => 'Custom Title', 'className' => 'custom-class']]]
252+
['target' => 3, 'content' => [['extend' => 'title', 'text' => 'Custom Title', 'className' => 'custom-class']]],
253253
];
254254
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
255255
}
@@ -263,7 +263,7 @@ public function it_can_add_column_control_title_with_defaults()
263263

264264
$this->assertInstanceOf(Builder::class, $result);
265265
$expected = [
266-
['target' => 1, 'content' => [['extend' => 'title', 'text' => null]]]
266+
['target' => 1, 'content' => [['extend' => 'title', 'text' => null]]],
267267
];
268268
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
269269
}
@@ -279,7 +279,7 @@ public function it_merges_content_for_same_target()
279279
$builder->columnControlSpacer(1);
280280

281281
$expected = [
282-
['target' => 1, 'content' => ['search', ['extend' => 'spacer']]]
282+
['target' => 1, 'content' => ['search', ['extend' => 'spacer']]],
283283
];
284284
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
285285
}
@@ -325,7 +325,7 @@ public function it_can_chain_multiple_column_control_methods()
325325
['target' => 'thead:0', 'content' => ['search']],
326326
['target' => 'tfoot:0', 'content' => ['order']],
327327
['target' => 2, 'content' => [['extend' => 'spacer']]],
328-
['target' => 3, 'content' => [['extend' => 'title', 'text' => 'Test Title']]]
328+
['target' => 3, 'content' => [['extend' => 'title', 'text' => 'Test Title']]],
329329
];
330330
$this->assertEquals($expected, $builder->getAttributes()['columnControl']);
331331
}

0 commit comments

Comments
 (0)