From c28346bed8a20c98256c3b09fc15be95fc159b7c Mon Sep 17 00:00:00 2001 From: "M. D." Date: Wed, 24 Apr 2024 15:49:03 +0200 Subject: [PATCH] Add todo test for `has state` Closes #124 --- README.md | 1 + src/Handlers/StubHandler.php | 1 + .../RelationManager/Table/Column/State.php | 21 +++++++++++++++++++ .../RelationManager/Table/Column/State.stub | 3 +++ 4 files changed, 26 insertions(+) create mode 100644 src/Stubs/Resource/Page/RelationManager/Table/Column/State.php create mode 100644 stubs/Resource/Page/RelationManager/Table/Column/State.stub diff --git a/README.md b/README.md index d0187c77..776563d7 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,7 @@ php artisan vendor:publish --tag="filament-tests-stubs" - [ ] it can bulk soft delete records - Column - [ ] [it cannot render column](https://filamentphp.com/docs/3.x/tables/testing#columns) + - [ ] [it has state](https://filamentphp.com/docs/3.x/tables/testing#state) - [ ] [it has the correct descriptions above](https://filamentphp.com/docs/3.x/tables/testing#descriptions) - [ ] [it has the correct descriptions below](https://filamentphp.com/docs/3.x/tables/testing#descriptions) - [ ] [it has column](https://filamentphp.com/docs/3.x/tables/testing#existence) diff --git a/src/Handlers/StubHandler.php b/src/Handlers/StubHandler.php index ff9f290d..743b6020 100644 --- a/src/Handlers/StubHandler.php +++ b/src/Handlers/StubHandler.php @@ -108,6 +108,7 @@ public function getStubs(): Collection \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Table\Column\Exist::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Table\Column\Render::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Table\Column\CannotRender::make($resource)->get(), + \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Table\Column\State::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Table\Column\Sort::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Table\Column\Search::make($resource)->get(), \CodeWithDennis\FilamentTests\Stubs\Resource\Page\RelationManager\Table\Column\SearchIndividually::make($resource)->get(), diff --git a/src/Stubs/Resource/Page/RelationManager/Table/Column/State.php b/src/Stubs/Resource/Page/RelationManager/Table/Column/State.php new file mode 100644 index 00000000..9f61f372 --- /dev/null +++ b/src/Stubs/Resource/Page/RelationManager/Table/Column/State.php @@ -0,0 +1,21 @@ +todo();