Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
chore: Ensure all test files pass when run in isolation (#140)
Browse files Browse the repository at this point in the history
* chore: Ensure all test files pass when run in isolation

* fix: PHPCS Whitespace end of line
  • Loading branch information
wadedvsa authored Apr 15, 2024
1 parent 6bd2c5a commit 9f59a87
Show file tree
Hide file tree
Showing 768 changed files with 1,628 additions and 1,527 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler;

use Doctrine\ORM\Query;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Transfer\Command\CommandInterface;
use Mockery as m;

abstract class AbstractCallEntityMethodTest extends CommandHandlerTestCase
abstract class AbstractCallEntityMethodTest extends AbstractCommandHandlerTestCase
{
protected $repoServiceName = 'changeMe';
protected $entityMethodName = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Dvsa\Olcs\Transfer\Command\CommandInterface;
use Mockery as m;

abstract class AbstractCancelApplicationHandlerTest extends CommandHandlerTestCase
abstract class AbstractCancelApplicationHandlerTest extends AbstractCommandHandlerTestCase
{
protected $repoServiceName = 'changeMe';
protected $entityClass = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*
* @author Rob Caiger <[email protected]>
*/
abstract class CommandHandlerTestCase extends MockeryTestCase
abstract class AbstractCommandHandlerTestCase extends MockeryTestCase
{
use ValidateMockRepoTypeTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @author Ian Lindsay <[email protected]>
*/
abstract class AbstractCreateSnapshotHandlerTest extends CommandHandlerTestCase
abstract class AbstractCreateSnapshotHandlerTest extends AbstractCommandHandlerTestCase
{
protected $cmdClass = 'changeMe';
protected $sutClass = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Ian Lindsay <[email protected]>
*/
abstract class AbstractDeleteCommandHandlerTest extends CommandHandlerTestCase
abstract class AbstractDeleteCommandHandlerTest extends AbstractCommandHandlerTestCase
{
protected $cmdClass = 'changeMe';
protected $sutClass = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Ian Lindsay <[email protected]>
*/
abstract class AbstractMultiDeleteCommandHandlerTest extends CommandHandlerTestCase
abstract class AbstractMultiDeleteCommandHandlerTest extends AbstractCommandHandlerTestCase
{
protected $cmdClass = 'changeMe';
protected $sutClass = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler;

use Doctrine\ORM\Query;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Transfer\Command\CommandInterface;
use Mockery as m;

abstract class AbstractUpdateCommandHandlerTest extends CommandHandlerTestCase
abstract class AbstractUpdateCommandHandlerTest extends AbstractCommandHandlerTestCase
{
protected $repoServiceName = 'changeMe';
protected $commandMethodName = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler;

use Doctrine\ORM\Query;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Transfer\Command\CommandInterface;
use Mockery as m;

abstract class AbstractUpdateDefinedValueTest extends CommandHandlerTestCase
abstract class AbstractUpdateDefinedValueTest extends AbstractCommandHandlerTestCase
{
protected $repoServiceName = 'changeMe';
protected $entityMethodName = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Mockery as m;
use LmcRbacMvc\Service\AuthorizationService;

abstract class AbstractWithdrawApplicationHandlerTest extends CommandHandlerTestCase
abstract class AbstractWithdrawApplicationHandlerTest extends AbstractCommandHandlerTestCase
{
protected $repoServiceName = 'changeMe';
protected $entityClass = 'changeMe';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler\Application;

use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Domain\Command\Result;
use Dvsa\Olcs\Api\Entity\Fee\Fee as FeeEntity;
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CancelAllInterimFees;
Expand All @@ -19,7 +19,7 @@
*
* @author Mat Evans <[email protected]>
*/
class CancelAllInterimFeesTest extends CommandHandlerTestCase
class CancelAllInterimFeesTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Dvsa\Olcs\Api\Entity\Application\Application as ApplicationEntity;
use Dvsa\Olcs\Api\Entity\Licence\Licence as LicenceEntity;
use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;

/**
* Cancel Application Test
*
* @author Alex Peshkov <[email protected]>
*/
class CancelApplicationTest extends CommandHandlerTestCase
class CancelApplicationTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler\Application;

use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Domain\Command\Result;
use Dvsa\Olcs\Api\Entity\Fee\Fee as FeeEntity;
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CancelOutstandingFees;
Expand All @@ -19,7 +19,7 @@
*
* @author Mat Evans <[email protected]>
*/
class CancelOutstandingTest extends CommandHandlerTestCase
class CancelOutstandingTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler\Application;

use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Domain\Command\Result;
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CloseFeeDueTask;

Expand All @@ -12,7 +12,7 @@
*
* @author Mat Evans <[email protected]>
*/
class CloseFeeDueTaskTest extends CommandHandlerTestCase
class CloseFeeDueTaskTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler\Application;

use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Domain\Command\Result;
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CloseTexTask;

Expand All @@ -12,7 +12,7 @@
*
* @author Mat Evans <[email protected]>
*/
class CloseTexTaskTest extends CommandHandlerTestCase
class CloseTexTaskTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Dvsa\Olcs\Api\Entity\User\User;
use Mockery as m;
use Dvsa\Olcs\Api\Domain\Repository\Application;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Entity\Task\Task;
use Dvsa\Olcs\Api\Domain\Command\Result;
use Dvsa\Olcs\Api\Entity\Application\Application as ApplicationEntity;
Expand All @@ -28,7 +28,7 @@
*
* @author Rob Caiger <[email protected]>
*/
class CreateApplicationFeeTest extends CommandHandlerTestCase
class CreateApplicationFeeTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Mockery as m;
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CreateApplication;
use Dvsa\Olcs\Api\Domain\Repository\Application;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Transfer\Command\Application\CreateApplication as Cmd;
use Dvsa\Olcs\Api\Entity\Application\Application as ApplicationEntity;
use LmcRbacMvc\Service\AuthorizationService;
Expand All @@ -36,7 +36,7 @@
*
* @author Rob Caiger <[email protected]>
*/
class CreateApplicationTest extends CommandHandlerTestCase
class CreateApplicationTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use Dvsa\Olcs\Api\Domain\Repository;
use Dvsa\Olcs\Api\Entity;
use Dvsa\Olcs\Transfer\Command as TransferCmd;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Mockery as m;

/**
* @covers Dvsa\Olcs\Api\Domain\CommandHandler\Application\CreateCompanySubsidiary
*/
class CreateCompanySubsidiaryTest extends CommandHandlerTestCase
class CreateCompanySubsidiaryTest extends AbstractCommandHandlerTestCase
{
public const ID = 666;
public const APP_ID = 8888;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Dvsa\Olcs\Api\Entity\Licence\Licence;
use Dvsa\Olcs\Api\Entity\Task\Task;
use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Entity\Fee\Fee as FeeEntity;
use Dvsa\Olcs\Api\Entity\TrafficArea\TrafficArea;

Expand All @@ -26,7 +26,7 @@
*
* @author Mat Evans <[email protected]>
*/
class CreateFeeTest extends CommandHandlerTestCase
class CreateFeeTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
use Dvsa\Olcs\Api\Entity\Application\Application as ApplicationEntity;
use Dvsa\Olcs\Api\Entity\User\Permission;
use Dvsa\Olcs\Transfer\Command\Application\CreateGoodsVehicle as Cmd;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Mockery as m;
use LmcRbacMvc\Service\AuthorizationService;

/**
* @covers \Dvsa\Olcs\Api\Domain\CommandHandler\Application\CreateGoodsVehicle
*/
class CreateGoodsVehicleTest extends CommandHandlerTestCase
class CreateGoodsVehicleTest extends AbstractCommandHandlerTestCase
{
public const APP_ID = 9001;
public const LIC_ID = 8001;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
use Dvsa\Olcs\Api\Entity\System\Category;
use Dvsa\Olcs\Transfer\Command\Application\CreateSnapshot;
use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Domain\Command\Application\CreateGrantFee as Cmd;

/**
* Create Grant Fee Test
*
* @author Rob Caiger <[email protected]>
*/
class CreateGrantFeeTest extends CommandHandlerTestCase
class CreateGrantFeeTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Dvsa\Olcs\Api\Domain\Service\OperatingCentreHelper;
use Dvsa\Olcs\Api\Entity\Application\Application;
use Dvsa\Olcs\Transfer\Command\Application\CreateOperatingCentre as Cmd;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Domain\Repository;
use Dvsa\Olcs\Api\Entity\User\Permission;
use LmcRbacMvc\Service\AuthorizationService;
Expand All @@ -24,7 +24,7 @@
*
* @author Rob Caiger <[email protected]>
*/
class CreateOperatingCentreTest extends CommandHandlerTestCase
class CreateOperatingCentreTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Dvsa\Olcs\Api\Entity\Licence\Licence as LicenceEntity;
use Dvsa\Olcs\Api\Entity\System\RefData;
use Dvsa\Olcs\Transfer\Command\Application\CreatePeople as Command;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;

/**
* CreatePeopleTest
*
* @author Mat Evans <[email protected]>
*/
class CreatePeopleTest extends CommandHandlerTestCase
class CreatePeopleTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CreatePsvVehicle as CommandHandler;
use Dvsa\Olcs\Api\Entity;
use Dvsa\Olcs\Transfer\Command\Application\CreatePsvVehicle as Cmd;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use LmcRbacMvc\Service\AuthorizationService;

/**
* Create Psv Vehicle Test
*
* @author Rob Caiger <[email protected]>
*/
class CreatePsvVehicleTest extends CommandHandlerTestCase
class CreatePsvVehicleTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mockery as m;
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CreateSnapshot;
use Dvsa\Olcs\Api\Domain\Repository\Application;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Transfer\Command\Application\CreateSnapshot as Cmd;
use Dvsa\Olcs\Api\Entity\Application\Application as ApplicationEntity;
use LmcRbacMvc\Service\AuthorizationService;
Expand All @@ -26,7 +26,7 @@
*
* @author Rob Caiger <[email protected]>
*/
class CreateSnapshotTest extends CommandHandlerTestCase
class CreateSnapshotTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CreateTaxiPhv as CommandHandler;
use Dvsa\Olcs\Transfer\Command\Application\CreateTaxiPhv as Command;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Mockery as m;

/**
* CreateTaxiPhvTest
*
* @author Mat Evans <[email protected]>
*/
class CreateTaxiPhvTest extends CommandHandlerTestCase
class CreateTaxiPhvTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Dvsa\OlcsTest\Api\Domain\CommandHandler\Application;

use Mockery as m;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase;
use Dvsa\OlcsTest\Api\Domain\CommandHandler\AbstractCommandHandlerTestCase;
use Dvsa\Olcs\Api\Domain\Command\Result;
use Dvsa\Olcs\Api\Domain\CommandHandler\Application\CreateTexTask;
use LmcRbacMvc\Service\AuthorizationService;
Expand All @@ -14,7 +14,7 @@
*
* @author Mat Evans <[email protected]>
*/
class CreateTexTaskTest extends CommandHandlerTestCase
class CreateTexTaskTest extends AbstractCommandHandlerTestCase
{
public function setUp(): void
{
Expand Down
Loading

0 comments on commit 9f59a87

Please sign in to comment.