1 points · by jeykeu · 3y ago · 2 comments
$posts = ... $titles = $posts->pluck('title'); $this->get('/posts') ... ->assertSeeInOrder($titles);
Testing: How to actually write tests? · Junaid Qadir
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.
Junaid Qadir