Skip to content

Commit

Permalink
Mock time for test without year
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jan 3, 2025
1 parent 5809747 commit cf851eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CarbonPeriod/CreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,8 @@ public function testEnums()

public function testStartAndEndFallback()
{
Carbon::setTestNow('2024-06-15');

$this->assertSame([
'2024-09-01',
'2024-09-30',
Expand Down

0 comments on commit cf851eb

Please sign in to comment.