Add @inheritDoc to all setUp and tearDown methods

This commit is contained in:
Alexander Skvortsov 2021-01-06 22:16:26 -05:00
parent 450ca99325
commit 823e6cbd2e
22 changed files with 66 additions and 0 deletions

View File

@ -23,6 +23,9 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
{
use BuildsHttpRequests;
/**
* @inheritDoc
*/
protected function tearDown(): void
{
parent::tearDown();

View File

@ -19,6 +19,9 @@ class WithApiKeyTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -17,6 +17,9 @@ class WithTokenTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -16,6 +16,9 @@ class RequireCsrfTokenTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -17,6 +17,9 @@ class DeletionTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -17,6 +17,9 @@ class ListTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -20,6 +20,9 @@ class ShowTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -17,6 +17,9 @@ class ShowTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -18,6 +18,9 @@ class CreateTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -17,6 +17,9 @@ class ListTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -16,6 +16,9 @@ class ListTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -17,6 +17,9 @@ class CreateTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -18,6 +18,9 @@ class CreateTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -16,6 +16,9 @@ class ShowTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -16,6 +16,9 @@ class UpdateTest extends TestCase
{
use RetrievesAuthorizedUsers;
/**
* @inheritDoc
*/
protected function setUp(): void
{
parent::setUp();

View File

@ -17,6 +17,9 @@ class ContainerUtilTest extends TestCase
{
private $container;
/**
* @inheritDoc
*/
protected function setUp()
{
parent::setUp();

View File

@ -20,6 +20,9 @@ class IlluminateValidationExceptionHandlerTest extends TestCase
{
private $handler;
/**
* @inheritDoc
*/
protected function setUp(): void
{
$this->handler = new IlluminateValidationExceptionHandler;

View File

@ -17,6 +17,9 @@ class ValidationExceptionHandlerTest extends TestCase
{
private $handler;
/**
* @inheritDoc
*/
protected function setUp(): void
{
$this->handler = new ValidationExceptionHandler;

View File

@ -19,6 +19,9 @@ class DatabaseSettingsRepositoryTest extends TestCase
private $connection;
private $repository;
/**
* @inheritDoc
*/
protected function setUp(): void
{
$this->connection = m::mock(ConnectionInterface::class);

View File

@ -19,6 +19,9 @@ class MemoryCacheSettingsRepositoryTest extends TestCase
private $baseRepository;
private $repository;
/**
* @inheritDoc
*/
protected function setUp(): void
{
$this->baseRepository = m::mock(SettingsRepositoryInterface::class);

View File

@ -21,6 +21,9 @@ class AbstractPolicyTest extends TestCase
private $policy;
private $dispatcher;
/**
* @inheritDoc
*/
protected function setUp(): void
{
$this->policy = m::mock(CustomUserPolicy::class)->makePartial();

View File

@ -24,6 +24,9 @@ class AvatarUploaderTest extends TestCase
private $filesystem;
private $uploader;
/**
* @inheritDoc
*/
protected function setUp(): void
{
$this->dispatcher = m::mock(Dispatcher::class);