Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed Jan 9, 2025
1 parent 8b1e6d3 commit 803b9c8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,11 @@ public static function custom_report_filter_provider(): array {
* @param string $filtername
* @param array $filtervalues
* @param string|null $expectmatch
* @param int $expectmatchnumber
*
* @dataProvider custom_report_filter_provider
*/
public function test_custom_report_filter(string $filtername, array $filtervalues, ?string $expectmatch = null): void {
public function test_custom_report_filter(string $filtername, array $filtervalues, ?string $expectmatch = null, ?int $expectmatchnumber = 1): void {
$this->resetAfterTest();
$this->setAdminUser();

Expand Down Expand Up @@ -437,7 +438,7 @@ public function test_custom_report_filter(string $filtername, array $filtervalue
$content = $this->get_custom_report_content($report->get('id'), 0, $filtervalues);

if ($expectmatch !== null) {
$this->assertCount(2, $content);
$this->assertCount($expectmatchnumber, $content);
$this->assertEquals($expectmatch, reset($content[0]));
} else {
$this->assertEmpty($content);
Expand Down

0 comments on commit 803b9c8

Please sign in to comment.