mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:11:56 +08: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:
parent
fe0159ecd1
commit
3224aeabac
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user