Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Commit f019f2b

Browse files
Update src/Commands/FilamentTestsCommand.php
1 parent 1b144f7 commit f019f2b

File tree

1 file changed

+47
-13
lines changed

1 file changed

+47
-13
lines changed

src/Commands/FilamentTestsCommand.php

Lines changed: 47 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,56 @@ public function handle(): void
4242
*/
4343
protected function getRenderers(): array
4444
{
45-
return [
46-
BeforeEach::class,
45+
return [
46+
BeforeEach::class,
4747

48-
// Index
49-
CanRenderIndexPageTest::class,
50-
CanRenderColumnTest::class,
51-
CanNotRenderColumnTest::class,
48+
/*
49+
|--------------------------------------------------------------------------
50+
| Index Page Tests
51+
|--------------------------------------------------------------------------
52+
|
53+
| These tests cover rendering the index page and its columns. They ensure
54+
| that all expected columns can be displayed and that restricted columns
55+
| are not accessible.
56+
|
57+
*/
58+
CanRenderIndexPageTest::class,
59+
CanRenderColumnTest::class,
60+
CanNotRenderColumnTest::class,
5261

53-
// Create
54-
CanRenderCreatePageTest::class,
62+
/*
63+
|--------------------------------------------------------------------------
64+
| Create Page Tests
65+
|--------------------------------------------------------------------------
66+
|
67+
| These tests verify that the create page renders properly, ensuring that
68+
| users can access and interact with the form.
69+
|
70+
*/
71+
CanRenderCreatePageTest::class,
5572

56-
// Edit
57-
CanRenderEditPageTest::class,
73+
/*
74+
|--------------------------------------------------------------------------
75+
| Edit Page Tests
76+
|--------------------------------------------------------------------------
77+
|
78+
| These tests make sure the edit page can be rendered correctly and that
79+
| form inputs behave as expected.
80+
|
81+
*/
82+
CanRenderEditPageTest::class,
83+
84+
/*
85+
|--------------------------------------------------------------------------
86+
| View Page Tests
87+
|--------------------------------------------------------------------------
88+
|
89+
| These tests validate that the view page renders correctly, displaying
90+
| all necessary data for the resource.
91+
|
92+
*/
93+
CanRenderViewPageTest::class,
94+
];
5895

59-
// View
60-
CanRenderViewPageTest::class,
61-
];
6296
}
6397
}

0 commit comments

Comments
 (0)