1
0
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:
Franz Liedke
2020-03-28 01:26:26 +01:00
parent f47a4879c4
commit 3246fb3fea
18 changed files with 18 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ class IlluminateValidationExceptionHandlerTest extends TestCase
{
private $handler;
public function setUp()
protected function setUp(): void
{
$this->handler = new IlluminateValidationExceptionHandler;
}

View File

@@ -17,7 +17,7 @@ class ValidationExceptionHandlerTest extends TestCase
{
private $handler;
public function setUp()
protected function setUp(): void
{
$this->handler = new ValidationExceptionHandler;
}

View File

@@ -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);

View File

@@ -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);

View File

@@ -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();