You receive a 302 and that is a redirect, so I am guessing that you are redirected back to the login page.
I would probably check the location rather than the status.
Without any code it's hard to help.
Summer Sale! All accounts are 50% off this week.
Hi everyone,
I've searched and searched and couldn't find the issue.
I have a laravel 7 repo. I've a suite of tests that , In the local environment, everything works.
However, once it's in a development server, it won't authenticate.
I get:
Expected status code 200 but received 302. Failed asserting that 200 is identical to 302.
I'm using actingAs(User::find(43)) and I've doubled checked the that user is correct by doing:
$user = User::find(43);
and actingAs($user)
Again, the same code works in the local environment but not on a development server.
What could be the reason?
Please or to participate in this conversation.