F
Filament11mo ago
pelmer

Is there a way to properly test custom fields? (FormInputs, Columns, Entries)

I'm trying to write a test for my fields, but I am struggling. This is my current attempt to test an entry: https://github.com/pelmered/filament-money-field/blob/main/tests/MoneyEntryTest.php This is the Entry that I am trying to test: https://github.com/pelmered/filament-money-field/blob/main/src/Infolists/Components/MoneyEntry.php As you probably can see, I want to test that the state is formatted correctly. Can I please have some guidance here?
GitHub
filament-money-field/tests/MoneyEntryTest.php at main · pelmered/fi...
Money field powered by Money PHP . Contribute to pelmered/filament-money-field development by creating an account on GitHub.
GitHub
filament-money-field/src/Infolists/Components/MoneyEntry.php at mai...
Money field powered by Money PHP . Contribute to pelmered/filament-money-field development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server