9 cases: null/empty/malformed email -> BadRequest; null/empty password -> BadRequest; unknown email -> Unauthorized; wrong password -> Unauthorized; valid creds return the User entity; isAdmin flag survives the auth round-trip. fails red - the AuthenticateUser class does not exist yet. |
||
|---|---|---|
| .. | ||
| AuthenticateUserTest.php | ||