3 ms·
Testing: How to actually write tests?
- zach_garwood 4y agoYou could streamline the test a bit by using `assertSeeInOrder()`: $posts = ... $titles = $posts->pluck('title'); $this->get('/posts') ... ->assertSeeInOrder($titles);
- jeykeu 4y agoWrite tests in Laravel using PHPUnit and the Given-When-Then pattern. I also explain how to use the “Red-Green-Refactor” approach with TDD.