4 cases: zero/negative id -> BadRequest; unknown id -> null (controller maps to 404); existing id returns the Post. GetPost takes int id directly (no Request object - the value is trivial and controllers pull it from a route param). |
||
|---|---|---|
| .. | ||
| CreatePostTest.php | ||
| GetPostTest.php | ||
| ListRecentPostsTest.php | ||
| ListUserPostsTest.php | ||