8000 [Tests] Fix broken test · laravel-json-api/laravel@4c665af · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c665af

Browse files
committed
[Tests] Fix broken test
1 parent 9c6cc69 commit 4c665af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/dummy/tests/Api/V1/Posts/IndexTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use App\Models\Tag;
2424
use App\Models\User;
2525
use App\Tests\Api\V1\TestCase;
26+
use Faker\Generator;
2627
use Illuminate\Support\Arr;
2728
use Illuminate\Support\Facades\Date;
2829

@@ -125,7 +126,7 @@ public function testPagePagination(): void
125126
public function testMultiPagination(): void
126127
{
127128
$posts = Post::factory()->count(6)->create([
128-
'created_at' => fn() => fake()->dateTime(),
129+
'created_at' => fn() => app(Generator::class)->dateTime(),
129130
])->sortByDesc('created_at')->values();
130131

131132
$expected = $this->identifiersFor('posts', $posts->skip(2)->take(2));

0 commit comments

Comments
 (0)
0