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

Commit 1d95135

Browse files
Refactor test renderers array in FilamentTestsCommand
1 parent f019f2b commit 1d95135

File tree

1 file changed

+9
-50
lines changed

1 file changed

+9
-50
lines changed

src/Commands/FilamentTestsCommand.php

Lines changed: 9 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -42,56 +42,15 @@ public function handle(): void
4242
*/
4343
protected function getRenderers(): array
4444
{
45-
return [
46-
BeforeEach::class,
47-
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,
61-
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,
72-
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-
];
45+
return [
46+
BeforeEach::class,
47+
CanRenderIndexPageTest::class,
48+
CanRenderColumnTest::class,
49+
CanNotRenderColumnTest::class,
50+
CanRenderCreatePageTest::class,
51+
CanRenderEditPageTest::class,
52+
CanRenderViewPageTest::class,
53+
];
9554

9655
}
9756
}

0 commit comments

Comments
 (0)