mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Make tests compatible with PHPUnit 8
This commit is contained in:
@@ -20,7 +20,7 @@ class IlluminateValidationExceptionHandlerTest extends TestCase
|
||||
{
|
||||
private $handler;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->handler = new IlluminateValidationExceptionHandler;
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@ class ValidationExceptionHandlerTest extends TestCase
|
||||
{
|
||||
private $handler;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->handler = new ValidationExceptionHandler;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -24,7 +24,7 @@ class AvatarUploaderTest extends TestCase
|
||||
private $filesystem;
|
||||
private $uploader;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->dispatcher = m::mock(Dispatcher::class);
|
||||
$this->dispatcher->shouldIgnoreMissing();
|
||||
|
Reference in New Issue
Block a user