mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 18:33:40 +08:00
Make tests compatible with PHPUnit 8
This commit is contained in:
parent
f47a4879c4
commit
3246fb3fea
|
@ -19,7 +19,7 @@ class WithApiKeyTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class WithTokenTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class RequireCsrfTokenTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class CreateTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class DeletionTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class ListTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class ShowTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class CreateTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class ListTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class CreateTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class CreateTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class ListTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class UpdateTest extends TestCase
|
|||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user