- Red
- Green
- Refactor (but stay green!)
Each function should test just one use case
Nothing red? So there's nothing to be done
Be punctual (and a little lazy)
Seriously, you need this, okay?
Make the code great again!
Of course!
Here we go again!
Functional controller tests
- The route exists?
- Whats the expected errors to this route?
- Access errors
- Required data errors
- The route works?
👍