How do you see the route if you run php artisan route:list
in your terminal? And are you sending extra headers with postman that could result in a different request?
Hi,
i see method POST in my terminal. So i don't undenstad why phpunit not see it.
| | POST | api/v1/auth/login | | App\Http\Controllers\Api\v1\AuthController@login
I tried to send same headers used in postman, but the result don't change.
Can you do a $response->dump();
Or do you get the error on the json() call?
I have no idea why the route doesn't work in your test so it is difficult to help.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community