4 cases: missing auth_token cookie -> 401 json
{error: unauthenticated}; unknown token -> 401; expired token
-> 401 + repo cleanup; valid token -> 200 with the User attached
to request->attributes['user']. fails red - middleware class
absent.
|
||
|---|---|---|
| .. | ||
| Fakes | ||
| Feature | ||
| Unit | ||
| TestCase.php | ||