@@ -82,7 +82,7 @@ public function testDefaultPagination(): void
8282 $ this ->videos ->method ('defaultPagination ' )->willReturn (['limit ' => '3 ' ]);
8383
8484 $ videos = Video::factory ()->count (5 )->create ([
85- 'created_at ' => fn () => $ this ->faker ->dateTime ,
85+ 'created_at ' => fn () => $ this ->faker ->dateTime () ,
8686 ])->sortByDesc ('created_at ' )->values ();
8787
8888 $ expected = $ videos ->take (3 );
@@ -191,7 +191,7 @@ public function testNoPages(): void
191191 public function testOnlyLimit (): void
192192 {
193193 $ videos = Video::factory ()->count (5 )->create ([
194- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
194+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
195195 ])->sortByDesc ('created_at ' )->values ();
196196
197197 $ meta = [
@@ -213,7 +213,7 @@ public function testOnlyLimit(): void
213213 public function testBefore (): void
214214 {
215215 $ videos = Video::factory ()->count (10 )->create ([
216- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
216+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
217217 ])->sortByDesc ('created_at ' )->values ();
218218
219219 $ expected = [$ videos [4 ], $ videos [5 ], $ videos [6 ]];
@@ -242,7 +242,7 @@ public function testBeforeAscending(): void
242242 $ this ->paginator ->withAscending ();
243243
244244 $ videos = Video::factory ()->count (10 )->create ([
245- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
245+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
246246 ])->sortBy ('created_at ' )->values ();
247247
248248 $ expected = [$ videos [4 ], $ videos [5 ], $ videos [6 ]];
@@ -307,14 +307,14 @@ public function testBeforeDoesNotExist(): void
307307 $ this ->expectExceptionMessage ('does not exist ' );
308308
309309 $ this ->videos ->repository ()->queryAll ()->paginate ([
310- 'before ' => $ this ->faker ->uuid ,
310+ 'before ' => $ this ->faker ->uuid () ,
311311 ]);
312312 }
313313
314314 public function testAfter (): void
315315 {
316316 $ videos = Video::factory ()->count (10 )->create ([
317- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
317+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
318318 ])->sortByDesc ('created_at ' )->values ();
319319
320320 $ expected = [$ videos [4 ], $ videos [5 ], $ videos [6 ]];
@@ -343,7 +343,7 @@ public function testAfterAscending(): void
343343 $ this ->paginator ->withAscending ();
344344
345345 $ videos = Video::factory ()->count (10 )->create ([
346- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
346+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
347347 ])->sortBy ('created_at ' )->values ();
348348
349349 $ expected = [$ videos [4 ], $ videos [5 ], $ videos [6 ]];
@@ -370,7 +370,7 @@ public function testAfterAscending(): void
370370 public function testAfterWithoutMore (): void
371371 {
372372 $ videos = Video::factory ()->count (4 )->create ([
373- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
373+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
374374 ])->sortByDesc ('created_at ' )->values ();
375375
376376 $ expected = [$ videos [2 ], $ videos [3 ]];
@@ -434,7 +434,7 @@ public function testAfterWithCustomKeys(): void
434434 ->withLimitKey ('per-page ' );
435435
436436 $ videos = Video::factory ()->count (6 )->create ([
437- 'created_at ' => fn () => $ this ->faker ->dateTime ,
437+ 'created_at ' => fn () => $ this ->faker ->dateTime () ,
438438 ])->sortByDesc ('created_at ' )->values ();
439439
440440 $ expected = [$ videos [2 ], $ videos [3 ], $ videos [4 ]];
@@ -493,7 +493,7 @@ public function testAfterDoesNotExist(): void
493493 $ this ->expectExceptionMessage ('does not exist ' );
494494
495495 $ this ->videos ->repository ()->queryAll ()->paginate ([
496- 'after ' => $ this ->faker ->uuid ,
496+ 'after ' => $ this ->faker ->uuid () ,
497497 ]);
498498 }
499499
@@ -503,7 +503,7 @@ public function testAfterDoesNotExist(): void
503503 public function testBeforeAndAfter (): void
504504 {
505505 $ videos = Video::factory ()->count (6 )->create ([
506- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
506+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
507507 ])->sortByDesc ('created_at ' )->values ();
508508
509509 $ expected = [$ videos [2 ], $ videos [3 ], $ videos [4 ]];
@@ -537,7 +537,7 @@ public function testSameColumnAndIdentifier(): void
537537 $ this ->paginator ->withCursorColumn ('uuid ' );
538538
539539 $ videos = Video::factory ()->count (6 )->create ([
540- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
540+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
541541 ])->sortByDesc ('uuid ' )->values ();
542542
543543 $ expected = [$ videos [1 ], $ videos [2 ], $ videos [3 ]];
@@ -567,7 +567,7 @@ public function testSnakeCaseMetaAndCustomMetaKey(): void
567567 $ this ->paginator ->withMetaKey ('cursor ' )->withSnakeCaseMeta ();
568568
569569 $ videos = Video::factory ()->count (6 )->create ([
570- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
570+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
571571 ])->sortByDesc ('created_at ' )->values ();
572572
573573 $ expected = [$ videos [1 ], $ videos [2 ], $ videos [3 ]];
@@ -593,7 +593,7 @@ public function testDashCaseMeta(): void
593593 $ this ->paginator ->withDashCaseMeta ();
594594
595595 $ videos = Video::factory ()->count (6 )->create ([
596- 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
596+ 'created_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
597597 ])->sortByDesc ('created_at ' )->values ();
598598
599599 $ expected = [$ videos [1 ], $ videos [2 ], $ videos [3 ]];
@@ -622,7 +622,7 @@ public function testColumn(): void
622622 $ this ->paginator ->withCursorColumn ('updated_at ' );
623623
624624 $ videos = Video::factory ()->count (6 )->create ([
625- 'updated_at ' => fn () => $ this ->faker ->unique ()->dateTime ,
625+ 'updated_at ' => fn () => $ this ->faker ->unique ()->dateTime () ,
626626 ])->sortByDesc ('updated_at ' )->values ();
627627
628628 $ expected = [$ videos [1 ], $ videos [2 ], $ videos [3 ]];
@@ -654,7 +654,7 @@ public function testItUsesModelDefaultPerPage(): void
654654 $ expected = (new Video ())->getPerPage ();
655655
656656 $ videos = Video::factory ()->count ($ expected + 5 )->create ([
657- 'created_at ' => fn () => $ this ->faker ->dateTime ,
657+ 'created_at ' => fn () => $ this ->faker ->dateTime () ,
658658 ])->sortByDesc ('created_at ' )->values ();
659659
660660 $ meta = [
@@ -683,7 +683,7 @@ public function testItUsesDefaultPerPage(): void
683683 $ this ->paginator ->withDefaultPerPage ($ expected );
684684
685685 $ videos = Video::factory ()->count ($ expected + 5 )->create ([
686- 'created_at ' => fn () => $ this ->faker ->dateTime ,
686+ 'created_at ' => fn () => $ this ->faker ->dateTime () ,
687687 ])->sortByDesc ('created_at ' )->values ();
688688
689689 $ meta = [
@@ -707,7 +707,7 @@ public function testItCanRemoveMeta(): void
707707 $ this ->paginator ->withoutMeta ();
708708
709709 $ videos = Video::factory ()->count (4 )->create ([
710- 'created_at ' => fn () => $ this ->faker ->dateTime ,
710+ 'created_at ' => fn () => $ this ->faker ->dateTime () ,
711711 ])->sortByDesc ('created_at ' )->values ();
712712
713713 $ links = $ this ->createLinks ($ videos [0 ], $ videos [2 ], 3 );
0 commit comments