Skip to content

Commit 7d66414

Browse files
committed
Add test coverage for #453
These tests are passing without errors or deprecations currently.
1 parent 6acf49e commit 7d66414

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/TestCase/DateTime/AddTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,17 @@ public function testAddWeek($class)
270270
});
271271
}
272272

273+
/**
274+
* @dataProvider classNameProvider
275+
* @return void
276+
*/
277+
public function testAddWeeksStartOfWeek($class)
278+
{
279+
$this->assertSame(5, (new $class(2024, 7, 2,))->addWeeks(1)->startOfWeek()->day);
280+
281+
$this->assertSame(14, $class::createFromDate(2024, 7, 2,)->addWeeks(1)->endOfWeek()->day);
282+
}
283+
273284
/**
274285
* @dataProvider classNameProvider
275286
* @return void

0 commit comments

Comments
 (0)