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

@ -19,7 +19,7 @@ class WithApiKeyTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -17,7 +17,7 @@ class WithTokenTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -16,7 +16,7 @@ class RequireCsrfTokenTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -18,7 +18,7 @@ class CreateTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -17,7 +17,7 @@ class DeletionTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -17,7 +17,7 @@ class ListTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -20,7 +20,7 @@ class ShowTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -18,7 +18,7 @@ class CreateTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -16,7 +16,7 @@ class ListTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -17,7 +17,7 @@ class CreateTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -18,7 +18,7 @@ class CreateTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -17,7 +17,7 @@ class ListTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

View File

@ -16,7 +16,7 @@ class UpdateTest extends TestCase
{
use RetrievesAuthorizedUsers;
public function setUp()
protected function setUp(): void
{
parent::setUp();

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