1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Tests: Actually accept multiple extenders

We did pass multiple extenders to this method in the tests for the
`Model` extender - now this actually has the desired effect.
This commit is contained in:
Franz Liedke
2020-05-23 02:00:25 +02:00
parent 00761946c7
commit 12aad66049

View File

@@ -56,9 +56,9 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
*/
protected $extenders = [];
protected function extend(ExtenderInterface $extender)
protected function extend(ExtenderInterface ...$extenders)
{
$this->extenders[] = $extender;
$this->extenders = array_merge($this->extenders, $extenders);
}
/**