Skip to content

Commit 3ba1cbe

Browse files
committed
time travel with same base
1 parent 9fbfe1e commit 3ba1cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Models/UserTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function testUsernameChangeCostType(string $type, int $cost)
236236
public function testUsernameChangeCostWindow(int $years, int $cost)
237237
{
238238
$now = CarbonImmutable::now();
239-
$this->travelTo(CarbonImmutable::now()->subYearsNoOverflow(3));
239+
$this->travelTo($now->subYearsNoOverflow(3));
240240

241241
$user = User::factory()->create();
242242
// every 6 months for 3 years = 6

0 commit comments

Comments
 (0)