News for hackers. Stuff that matters.
Re:Testing: How to actually write tests? by zach_garwood on Wednesday December 14, 2022 @11:17AM (#33985667)
You could streamline the test a bit by using `assertSeeInOrder()`:

  $posts = ...
  $titles = $posts->pluck('title');
  $this->get('/posts')
     ...
     ->assertSeeInOrder($titles);
Re:Testing: How to actually write tests? by jeykeu on Wednesday December 14, 2022 @10:35AM (#33984907)
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.