Skip to content

Commit d186613

Browse files
committed
- Updated tests to support PHPUnit 12
Signed-off-by: Arushad Ahmed <dash-8x@hotmail.com>
1 parent 7206ca6 commit d186613

37 files changed

+172
-344
lines changed

tests/Feature/AccordionTest.php

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
class AccordionTest extends TestCase
88
{
9-
/** @test */
10-
public function it_can_generate_bootstrap_5_accordion_header()
9+
public function test_it_can_generate_bootstrap_5_accordion_header()
1110
{
1211
$this->setFrameworkBootstrap5();
1312
$this->registerTestRoute('accordion-header');
@@ -26,8 +25,7 @@ public function it_can_generate_bootstrap_5_accordion_header()
2625

2726
}
2827

29-
/** @test */
30-
public function it_can_generate_material_admin_26_accordion_header()
28+
public function test_it_can_generate_material_admin_26_accordion_header()
3129
{
3230
$this->setFrameworkMaterialAdmin26();
3331
$this->registerTestRoute('accordion-header');
@@ -39,8 +37,7 @@ public function it_can_generate_material_admin_26_accordion_header()
3937
->seeInElement('.accordion__title#item-2', 'Accordion Item #2');
4038
}
4139

42-
/** @test */
43-
public function it_can_generate_bootstrap_5_accordion_collapse()
40+
public function test_it_can_generate_bootstrap_5_accordion_collapse()
4441
{
4542
$this->setFrameworkBootstrap5();
4643
$this->registerTestRoute('accordion-collapse');
@@ -57,8 +54,7 @@ public function it_can_generate_bootstrap_5_accordion_collapse()
5754

5855
}
5956

60-
/** @test */
61-
public function it_can_generate_material_admin_26_accordion_collapse()
57+
public function test_it_can_generate_material_admin_26_accordion_collapse()
6258
{
6359
$this->setFrameworkMaterialAdmin26();
6460
$this->registerTestRoute('accordion-collapse');
@@ -75,8 +71,7 @@ public function it_can_generate_material_admin_26_accordion_collapse()
7571

7672
}
7773

78-
/** @test */
79-
public function it_can_generate_bootstrap_5_accordion_item()
74+
public function test_it_can_generate_bootstrap_5_accordion_item()
8075
{
8176
$this->setFrameworkBootstrap5();
8277
$this->registerTestRoute('accordion-item');
@@ -108,8 +103,7 @@ public function it_can_generate_bootstrap_5_accordion_item()
108103

109104
}
110105

111-
/** @test */
112-
public function it_can_generate_material_admin_26_accordion_item()
106+
public function test_it_can_generate_material_admin_26_accordion_item()
113107
{
114108
$this->setFrameworkMaterialAdmin26();
115109
$this->registerTestRoute('accordion-item');
@@ -133,8 +127,7 @@ public function it_can_generate_material_admin_26_accordion_item()
133127

134128
}
135129

136-
/** @test */
137-
public function it_can_generate_bootstrap_5_accordion_using_named_items()
130+
public function test_it_can_generate_bootstrap_5_accordion_using_named_items()
138131
{
139132
$this->setFrameworkBootstrap5();
140133
$this->registerTestRoute('accordion');
@@ -169,8 +162,7 @@ public function it_can_generate_bootstrap_5_accordion_using_named_items()
169162

170163
}
171164

172-
/** @test */
173-
public function it_can_generate_material_admin_accordion_using_named_items()
165+
public function test_it_can_generate_material_admin_accordion_using_named_items()
174166
{
175167
$this->setFrameworkMaterialAdmin26();
176168
$this->registerTestRoute('accordion');
@@ -197,8 +189,7 @@ public function it_can_generate_material_admin_accordion_using_named_items()
197189

198190
}
199191

200-
/** @test */
201-
public function it_can_generate_bootstrap_5_accordion_using_unnamed_items()
192+
public function test_it_can_generate_bootstrap_5_accordion_using_unnamed_items()
202193
{
203194
$this->setFrameworkBootstrap5();
204195
$this->registerTestRoute('accordion-unnamed');
@@ -233,8 +224,7 @@ public function it_can_generate_bootstrap_5_accordion_using_unnamed_items()
233224

234225
}
235226

236-
/** @test */
237-
public function it_can_generate_bootstrap_5_accordion_using_slot()
227+
public function test_it_can_generate_bootstrap_5_accordion_using_slot()
238228
{
239229
$this->setFrameworkBootstrap5();
240230
$this->registerTestRoute('accordion-slot');

tests/Feature/BulkTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
class BulkTest extends TestCase
88
{
9-
/** @test */
10-
public function it_can_generated_bulk_actions_for_material_admin_26()
9+
public function test_it_can_generated_bulk_actions_for_material_admin_26()
1110
{
1211
$this->setFrameworkMaterialAdmin26();
1312
$this->registerTestRoute('bulk-actions');
@@ -23,8 +22,7 @@ public function it_can_generated_bulk_actions_for_material_admin_26()
2322
});
2423
}
2524

26-
/** @test */
27-
public function it_can_generated_bulk_actions_for_bootstrap_5()
25+
public function test_it_can_generated_bulk_actions_for_bootstrap_5()
2826
{
2927
$this->setFrameworkBootstrap5();
3028
$this->registerTestRoute('bulk-actions');

tests/Feature/ButtonTest.php

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
class ButtonTest extends TestCase
88
{
9-
/** @test */
10-
public function it_can_generate_bootstrap_5_button_group()
9+
public function test_it_can_generate_bootstrap_5_button_group()
1110
{
1211
$this->setFrameworkBootstrap5();
1312
$this->registerTestRoute('button-group');
@@ -19,8 +18,7 @@ public function it_can_generate_bootstrap_5_button_group()
1918
});
2019
}
2120

22-
/** @test */
23-
public function it_can_generate_material_admin_26_group()
21+
public function test_it_can_generate_material_admin_26_group()
2422
{
2523
$this->setFrameworkMaterialAdmin26();
2624
$this->registerTestRoute('button-group');
@@ -32,8 +30,7 @@ public function it_can_generate_material_admin_26_group()
3230
});
3331
}
3432

35-
/** @test */
36-
public function it_can_generate_bootstrap_5_button()
33+
public function test_it_can_generate_bootstrap_5_button()
3734
{
3835
$this->setFrameworkBootstrap5();
3936
$this->registerTestRoute('button');
@@ -43,8 +40,7 @@ public function it_can_generate_bootstrap_5_button()
4340
->seeInElement('button[type="button"].btn.btn-danger', 'Button');
4441
}
4542

46-
/** @test */
47-
public function it_can_generate_material_admin_26_button()
43+
public function test_it_can_generate_material_admin_26_button()
4844
{
4945
$this->setFrameworkMaterialAdmin26();
5046
$this->registerTestRoute('button');
@@ -54,8 +50,7 @@ public function it_can_generate_material_admin_26_button()
5450
->seeInElement('button[type="button"].btn.btn-danger', 'Button');
5551
}
5652

57-
/** @test */
58-
public function it_can_generate_bootstrap_5_submit_button()
53+
public function test_it_can_generate_bootstrap_5_submit_button()
5954
{
6055
$this->setFrameworkBootstrap5();
6156
$this->registerTestRoute('button-submit');
@@ -65,8 +60,7 @@ public function it_can_generate_bootstrap_5_submit_button()
6560
->seeInElement('button[type="submit"].btn.btn-danger', 'Button');
6661
}
6762

68-
/** @test */
69-
public function it_can_generate_material_admin_26_submit_button()
63+
public function test_it_can_generate_material_admin_26_submit_button()
7064
{
7165
$this->setFrameworkMaterialAdmin26();
7266
$this->registerTestRoute('button-submit');
@@ -76,8 +70,7 @@ public function it_can_generate_material_admin_26_submit_button()
7670
->seeInElement('button[type="submit"].btn.btn-danger', 'Button');
7771
}
7872

79-
/** @test */
80-
public function it_can_generate_bootstrap_5_link_button()
73+
public function test_it_can_generate_bootstrap_5_link_button()
8174
{
8275
$this->setFrameworkBootstrap5();
8376
$this->registerTestRoute('button-link');
@@ -87,8 +80,7 @@ public function it_can_generate_bootstrap_5_link_button()
8780
->seeInElement('a[href="/test"].btn.btn-danger', 'Button');
8881
}
8982

90-
/** @test */
91-
public function it_can_generate_material_admin_26_link_button()
83+
public function test_it_can_generate_material_admin_26_link_button()
9284
{
9385
$this->setFrameworkMaterialAdmin26();
9486
$this->registerTestRoute('button-link');

tests/Feature/CardTest.php

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
class CardTest extends TestCase
88
{
9-
/** @test */
10-
public function it_can_generate_bootstrap_5_card_title()
9+
public function test_it_can_generate_bootstrap_5_card_title()
1110
{
1211
$this->setFrameworkBootstrap5();
1312
$this->registerTestRoute('form-card-title');
@@ -17,8 +16,7 @@ public function it_can_generate_bootstrap_5_card_title()
1716
->seeInElement('h5.card-title', 'Card title');
1817
}
1918

20-
/** @test */
21-
public function it_can_generate_material_admin_26_card_title()
19+
public function test_it_can_generate_material_admin_26_card_title()
2220
{
2321
$this->setFrameworkMaterialAdmin26();
2422
$this->registerTestRoute('form-card-title');
@@ -28,8 +26,7 @@ public function it_can_generate_material_admin_26_card_title()
2826
->seeInElement('h4.card-title', 'Card title');
2927
}
3028

31-
/** @test */
32-
public function it_can_generate_bootstrap_5_card_subtitle()
29+
public function test_it_can_generate_bootstrap_5_card_subtitle()
3330
{
3431
$this->setFrameworkBootstrap5();
3532
$this->registerTestRoute('form-card-subtitle');
@@ -39,8 +36,7 @@ public function it_can_generate_bootstrap_5_card_subtitle()
3936
->seeInElement('h6.card-subtitle', 'Card subtitle');
4037
}
4138

42-
/** @test */
43-
public function it_can_generate_material_admin_26_card_subtitle()
39+
public function test_it_can_generate_material_admin_26_card_subtitle()
4440
{
4541
$this->setFrameworkMaterialAdmin26();
4642
$this->registerTestRoute('form-card-subtitle');
@@ -50,8 +46,7 @@ public function it_can_generate_material_admin_26_card_subtitle()
5046
->seeInElement('h6.card-subtitle', 'Card subtitle');
5147
}
5248

53-
/** @test */
54-
public function it_can_generate_bootstrap_5_card_header()
49+
public function test_it_can_generate_bootstrap_5_card_header()
5550
{
5651
$this->setFrameworkBootstrap5();
5752
$this->registerTestRoute('form-card-header');
@@ -61,8 +56,7 @@ public function it_can_generate_bootstrap_5_card_header()
6156
->seeInElement('div.card-header', 'Card header');
6257
}
6358

64-
/** @test */
65-
public function it_can_generate_material_admin_26_card_header()
59+
public function test_it_can_generate_material_admin_26_card_header()
6660
{
6761
$this->setFrameworkMaterialAdmin26();
6862
$this->registerTestRoute('form-card-header');
@@ -72,8 +66,7 @@ public function it_can_generate_material_admin_26_card_header()
7266
->seeInElement('div.card-header', 'Card header');
7367
}
7468

75-
/** @test */
76-
public function it_can_generate_bootstrap_5_card_footer()
69+
public function test_it_can_generate_bootstrap_5_card_footer()
7770
{
7871
$this->setFrameworkBootstrap5();
7972
$this->registerTestRoute('form-card-footer');
@@ -83,8 +76,7 @@ public function it_can_generate_bootstrap_5_card_footer()
8376
->seeInElement('div.card-footer', 'Card footer');
8477
}
8578

86-
/** @test */
87-
public function it_can_generate_material_admin_26_card_footer()
79+
public function test_it_can_generate_material_admin_26_card_footer()
8880
{
8981
$this->setFrameworkMaterialAdmin26();
9082
$this->registerTestRoute('form-card-footer');
@@ -94,8 +86,7 @@ public function it_can_generate_material_admin_26_card_footer()
9486
->seeInElement('div.card-footer', 'Card footer');
9587
}
9688

97-
/** @test */
98-
public function it_can_generate_bootstrap_5_card()
89+
public function test_it_can_generate_bootstrap_5_card()
9990
{
10091
$this->setFrameworkBootstrap5();
10192
$this->registerTestRoute('form-card');
@@ -116,8 +107,7 @@ public function it_can_generate_bootstrap_5_card()
116107
});
117108
}
118109

119-
/** @test */
120-
public function it_can_generate_bootstrap_5_card_with_header()
110+
public function test_it_can_generate_bootstrap_5_card_with_header()
121111
{
122112
$this->setFrameworkBootstrap5();
123113
$this->registerTestRoute('form-card');
@@ -134,8 +124,7 @@ public function it_can_generate_bootstrap_5_card_with_header()
134124
});
135125
}
136126

137-
/** @test */
138-
public function it_can_generate_material_admin_26_card_with_header()
127+
public function test_it_can_generate_material_admin_26_card_with_header()
139128
{
140129
$this->setFrameworkMaterialAdmin26();
141130
$this->registerTestRoute('form-card');
@@ -152,8 +141,7 @@ public function it_can_generate_material_admin_26_card_with_header()
152141
});
153142
}
154143

155-
/** @test */
156-
public function it_can_generate_bootstrap_5_card_with_subtitle()
144+
public function test_it_can_generate_bootstrap_5_card_with_subtitle()
157145
{
158146
$this->setFrameworkBootstrap5();
159147
$this->registerTestRoute('form-card');
@@ -170,8 +158,7 @@ public function it_can_generate_bootstrap_5_card_with_subtitle()
170158
});
171159
}
172160

173-
/** @test */
174-
public function it_can_generate_bootstrap_5_card_with_image_top()
161+
public function test_it_can_generate_bootstrap_5_card_with_image_top()
175162
{
176163
$this->setFrameworkBootstrap5();
177164
$this->registerTestRoute('form-card');
@@ -187,8 +174,7 @@ public function it_can_generate_bootstrap_5_card_with_image_top()
187174
});
188175
}
189176

190-
/** @test */
191-
public function it_can_generate_bootstrap_5_card_with_footer()
177+
public function test_it_can_generate_bootstrap_5_card_with_footer()
192178
{
193179
$this->setFrameworkBootstrap5();
194180
$this->registerTestRoute('form-card');
@@ -204,8 +190,7 @@ public function it_can_generate_bootstrap_5_card_with_footer()
204190
});
205191
}
206192

207-
/** @test */
208-
public function it_can_generate_material_admin_26_card_with_footer()
193+
public function test_it_can_generate_material_admin_26_card_with_footer()
209194
{
210195
$this->setFrameworkMaterialAdmin26();
211196
$this->registerTestRoute('form-card');
@@ -223,8 +208,7 @@ public function it_can_generate_material_admin_26_card_with_footer()
223208

224209
// write test for material admin
225210

226-
/** @test */
227-
public function it_can_generate_material_admin_26_card()
211+
public function test_it_can_generate_material_admin_26_card()
228212
{
229213
$this->setFrameworkMaterialAdmin26();
230214
$this->registerTestRoute('form-card');
@@ -247,8 +231,7 @@ public function it_can_generate_material_admin_26_card()
247231

248232

249233

250-
/** @test */
251-
public function it_can_generate_material_admin_26_card_with_subtitle()
234+
public function test_it_can_generate_material_admin_26_card_with_subtitle()
252235
{
253236
$this->setFrameworkMaterialAdmin26();
254237
$this->registerTestRoute('form-card');
@@ -265,8 +248,7 @@ public function it_can_generate_material_admin_26_card_with_subtitle()
265248
});
266249
}
267250

268-
/** @test */
269-
public function it_can_generate_material_admin_26_card_with_image_top()
251+
public function test_it_can_generate_material_admin_26_card_with_image_top()
270252
{
271253
$this->setFrameworkMaterialAdmin26();
272254
$this->registerTestRoute('form-card');

0 commit comments

Comments
 (0)