[–] jeykeu 3y ago ↗ Write tests in Laravel using PHPUnit and the Given-When-Then pattern. I also explain how to use the “Red-Green-Refactor” approach with TDD.
[–] zach_garwood 3y ago ↗ You could streamline the test a bit by using `assertSeeInOrder()`: $posts = ... $titles = $posts->pluck('title'); $this->get('/posts') ... ->assertSeeInOrder($titles);
2 comments
[ 5.3 ms ] story [ 20.3 ms ] thread