Skip to content

Commit

Permalink
Merge pull request #23 from laracasts/test
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
lukeraymonddowning authored Sep 30, 2024
2 parents 601e247 + 39435de commit 980feb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Feature/WelcomeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
expect(Redis::get('landing-page-views'))->toEqual(3);
});

it('provides users in random paginated order', function () {
$users = User::factory(5)->create();
it('provides users in random paginated order', function ()
{
$users = User::factory(3)->create();

$users = collect($this->get('/')->viewData('users')->items())
->merge($this->get('/?page=2')->viewData('users')->items());
Expand Down

0 comments on commit 980feb4

Please sign in to comment.