From ec490ca0af8fd3926d6e09bcf8129834fc41389a Mon Sep 17 00:00:00 2001 From: Tim Goudriaan Date: Sat, 7 Dec 2024 12:26:50 +0100 Subject: [PATCH] [Scheduler] Fix optional count variable in testGetNextRunDates --- Tests/Trigger/PeriodicalTriggerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Trigger/PeriodicalTriggerTest.php b/Tests/Trigger/PeriodicalTriggerTest.php index 22162e7..8f1ce90 100644 --- a/Tests/Trigger/PeriodicalTriggerTest.php +++ b/Tests/Trigger/PeriodicalTriggerTest.php @@ -108,9 +108,9 @@ public static function provideForToString() /** * @dataProvider providerGetNextRunDates */ - public function testGetNextRunDates(\DateTimeImmutable $from, TriggerInterface $trigger, array $expected, int $count = 0) + public function testGetNextRunDates(\DateTimeImmutable $from, TriggerInterface $trigger, array $expected, int $count) { - $this->assertEquals($expected, $this->getNextRunDates($from, $trigger, $count ?? \count($expected))); + $this->assertEquals($expected, $this->getNextRunDates($from, $trigger, $count)); } public static function providerGetNextRunDates(): iterable