Skip to content

Commit eaeafdb

Browse files
committed
fix assertion
1 parent f20a457 commit eaeafdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ModelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public function testCarbonDateMockingWorks()
441441
Carbon::setTestNow($fakeDate);
442442
$item = Item::create(['name' => 'sword']);
443443

444-
$this->assertLessThan($fakeDate->diffInSeconds($item->created_at), 1);
444+
$this->assertLessThan(1, $fakeDate->diffInSeconds($item->created_at));
445445
}
446446

447447
public function testIdAttribute(): void

0 commit comments

Comments
 (0)