Skip to content

Commit

Permalink
[Scheduler] Fix optional count variable in testGetNextRunDates
Browse files Browse the repository at this point in the history
  • Loading branch information
codedmonkey authored and Tim Goudriaan committed Dec 12, 2024
1 parent e45354b commit ec490ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Trigger/PeriodicalTriggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec490ca

Please sign in to comment.