mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Make two more tests compatible with PHPUnit 8
This commit is contained in:
parent
531b9ffd82
commit
3a7b4f392b
|
@ -17,7 +17,7 @@ class ListTest extends TestCase
|
||||||
{
|
{
|
||||||
use RetrievesAuthorizedUsers;
|
use RetrievesAuthorizedUsers;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ class AbstractPolicyTest extends TestCase
|
||||||
private $policy;
|
private $policy;
|
||||||
private $dispatcher;
|
private $dispatcher;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->policy = m::mock(CustomUserPolicy::class)->makePartial();
|
$this->policy = m::mock(CustomUserPolicy::class)->makePartial();
|
||||||
$this->dispatcher = new Dispatcher();
|
$this->dispatcher = new Dispatcher();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user