302 means it's redirecting with validation errors. You forgot to pass a team_name since it's required, your test is failing.
why are you asserting it as a 405 ? it means method now allowed. assertions are 200 (most of the time)
Thanks, missed the required property. The idea is the test should fail because the team_members is bigger than the maximum allowed.
Should I test on 302 instead of 405?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community