7 cases: null + whitespace title -> BadRequest; null + whitespace body -> BadRequest; valid request returns Post with correct userId/title/body and createdAt = clock.now(); the post is findable via the repo afterwards; title and body get trimmed of leading/trailing whitespace. fails red - CreatePost class absent. |
||
|---|---|---|
| .. | ||
| Fakes | ||
| Feature | ||
| Unit | ||
| TestCase.php | ||