livewire()->fillForm() not working
I have several tests using the same helper. All tests are working except for one, and I can't figure out why. I'm going to leave the simplest example possible just to show the problem:
VehicleTest:
VehicleResource:
CreateVehicle:
That exact test is not working, giving:
Failed asserting that null matches expected 'someplate'
Even though it works if I manually create that vehicle in the actual page.7 Replies
dd(app()->runningUnitTests());
in the test, what is the output?false
env testing in the phpunit.xml?
<env name="APP_ENV" value="testing"/>
value = local
Solution
change to
testing
worked... thanks very much, why did my other tests keep working but this one? all of them were using the exact same helpers