Skip to content

Commit

Permalink
updated test ... test
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Feb 4, 2025
1 parent b78bef8 commit 4e4a240
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tests/N98/Magento/ModulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,11 @@ private function filter($option = null, $value = null)
->setMethods(['getOption'])
->getMock();

$i = 0;
foreach ($options as $opt => $val) {
if (!$val) {
continue;
}

$input
->expects(self::at($i++))
->method('getOption')
->with($opt)
->willReturn($val);
}
$input
->expects(self::any())
->method('getOption')
->with($option)
->willReturn($options[$option]);

return $input;
}
Expand Down

0 comments on commit 4e4a240

Please sign in to comment.