Skip to content

Commit

Permalink
Add test coverage for #453
Browse files Browse the repository at this point in the history
These tests are passing without errors or deprecations currently.
  • Loading branch information
markstory committed Jul 23, 2024
1 parent 6acf49e commit 7d66414
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/TestCase/DateTime/AddTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,17 @@ public function testAddWeek($class)
});
}

/**
* @dataProvider classNameProvider
* @return void
*/
public function testAddWeeksStartOfWeek($class)
{
$this->assertSame(5, (new $class(2024, 7, 2,))->addWeeks(1)->startOfWeek()->day);

$this->assertSame(14, $class::createFromDate(2024, 7, 2,)->addWeeks(1)->endOfWeek()->day);
}

/**
* @dataProvider classNameProvider
* @return void
Expand Down

0 comments on commit 7d66414

Please sign in to comment.