Skip to content
Advertisement

Tag: inertiajs

PHPUnit assertDatabaseHas with Laravel and Inertia

I have a Laravel 8 setup that utilises Intertia.js. I’m trying to test my post routes to store new resources and want to assert that the database has the new record stored, using the assertDatabaseHas() method. Controller.php CreateSlotTest.php When I debug the session I can see the slot that I added to the with() method but I can’t figure out

Advertisement