Skip to content

Commit d8fa076

Browse files
codedmonkeyTim Goudriaan
authored and
Tim Goudriaan
committed
[Scheduler] Fix optional count variable in testGetNextRunDates
1 parent caa1be7 commit d8fa076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Scheduler/Tests/Trigger/PeriodicalTriggerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ public static function provideForToString()
108108
/**
109109
* @dataProvider providerGetNextRunDates
110110
*/
111-
public function testGetNextRunDates(\DateTimeImmutable $from, TriggerInterface $trigger, array $expected, int $count = 0)
111+
public function testGetNextRunDates(\DateTimeImmutable $from, TriggerInterface $trigger, array $expected, int $count)
112112
{
113-
$this->assertEquals($expected, $this->getNextRunDates($from, $trigger, $count ?? \count($expected)));
113+
$this->assertEquals($expected, $this->getNextRunDates($from, $trigger, $count));
114114
}
115115

116116
public static function providerGetNextRunDates(): iterable

0 commit comments

Comments
 (0)