mirror of
https://github.com/flarum/core.git
synced 2025-07-31 05:30:38 +02:00
Make tests compatible with PHPUnit 8
This commit is contained in:
@@ -19,7 +19,7 @@ class DatabaseSettingsRepositoryTest extends TestCase
|
||||
private $connection;
|
||||
private $repository;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->connection = m::mock(ConnectionInterface::class);
|
||||
$this->repository = new DatabaseSettingsRepository($this->connection);
|
||||
|
@@ -19,7 +19,7 @@ class MemoryCacheSettingsRepositoryTest extends TestCase
|
||||
private $baseRepository;
|
||||
private $repository;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->baseRepository = m::mock(SettingsRepositoryInterface::class);
|
||||
$this->repository = new MemoryCacheSettingsRepository($this->baseRepository);
|
||||
|
Reference in New Issue
Block a user