© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
111 replies
Marwam Malta

Error in Filament with PestPHP using form select in resource and enum

I'm creating a project using Filament, Laravel 11 and PestPHP. I'm having problems running the test. the following error appears: " FAILED Tests\Feature\EntesTest >
CREATE - admin/entes/create
CREATE - admin/entes/create
→ it must test the creation of an entity
Component has errors: "data.nature"
Failed asserting that false is true.".

I don't understand the reason for the error, as I am sending the 'nature' field in the fillForm. How to resolve this error?

=======>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Follow the code in the attached file.
Solution
The
fillForm
fillForm
function is a helper that calls another method,
fillFormDataForTesting
fillFormDataForTesting
(after V3.2.77). This method checks the
runningUnitTests()
runningUnitTests()
status. According to your test configuration, it was returning
false
false
.

However, when you update the connection information in
phpunit.xml
phpunit.xml
as previously suggested,
runningUnitTests()
runningUnitTests()
returns true
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Enum with form->select
FilamentFFilament / ❓┊help
3y ago
Using an Enum class with Select in form
FilamentFFilament / ❓┊help
2mo ago
Enum select with live() on Create and Edit form
FilamentFFilament / ❓┊help
2y ago
Problem with Custom Form-Field Table in Filament Resource Form
FilamentFFilament / ❓┊help
16mo ago