8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6cc69 commit 4c665afCopy full SHA for 4c665af
tests/dummy/tests/Api/V1/Posts/IndexTest.php
@@ -23,6 +23,7 @@
23
use App\Models\Tag;
24
use App\Models\User;
25
use App\Tests\Api\V1\TestCase;
26
+use Faker\Generator;
27
use Illuminate\Support\Arr;
28
use Illuminate\Support\Facades\Date;
29
@@ -125,7 +126,7 @@ public function testPagePagination(): void
125
126
public function testMultiPagination(): void
127
{
128
$posts = Post::factory()->count(6)->create([
- 'created_at' => fn() => fake()->dateTime(),
129
+ 'created_at' => fn() => app(Generator::class)->dateTime(),
130
])->sortByDesc('created_at')->values();
131
132
$expected = $this->identifiersFor('posts', $posts->skip(2)->take(2));
0 commit comments