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 c084a2c commit 1d7f2fcCopy full SHA for 1d7f2fc
tests/ModelTest.php
@@ -441,7 +441,7 @@ public function testCarbonDateMockingWorks()
441
Carbon::setTestNow($fakeDate);
442
$item = Item::create(['name' => 'sword']);
443
444
- $this->assertEquals($item->created_at, $fakeDate);
+ $this->assertLessThan($fakeDate->diffInSeconds($item->created_at), 1);
445
}
446
447
public function testIdAttribute(): void
0 commit comments