Support the ongoing development of Laravel.io →
Requests Input Testing
Last updated 1 year ago.
0

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)

0

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?

0

i think it should be 302

0

Sign in to participate in this thread!

Eventy

Your banner here too?

kingErnie kingernie Joined 23 Oct 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.