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);

There are no comments on this comment yet.