This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Ensure all test files pass when run in isolation (#140)
* chore: Ensure all test files pass when run in isolation * fix: PHPCS Whitespace end of line
- Loading branch information
Showing
768 changed files
with
1,628 additions
and
1,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
* | ||
* @author Rob Caiger <[email protected]> | ||
*/ | ||
abstract class CommandHandlerTestCase extends MockeryTestCase | ||
abstract class AbstractCommandHandlerTestCase extends MockeryTestCase | ||
{ | ||
use ValidateMockRepoTypeTrait; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -19,7 +19,7 @@ | |
* | ||
* @author Mat Evans <[email protected]> | ||
*/ | ||
class CancelAllInterimFeesTest extends CommandHandlerTestCase | ||
class CancelAllInterimFeesTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -19,7 +19,7 @@ | |
* | ||
* @author Mat Evans <[email protected]> | ||
*/ | ||
class CancelOutstandingTest extends CommandHandlerTestCase | ||
class CancelOutstandingTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
||
|
@@ -12,7 +12,7 @@ | |
* | ||
* @author Mat Evans <[email protected]> | ||
*/ | ||
class CloseFeeDueTaskTest extends CommandHandlerTestCase | ||
class CloseFeeDueTaskTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
||
|
@@ -12,7 +12,7 @@ | |
* | ||
* @author Mat Evans <[email protected]> | ||
*/ | ||
class CloseTexTaskTest extends CommandHandlerTestCase | ||
class CloseTexTaskTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -28,7 +28,7 @@ | |
* | ||
* @author Rob Caiger <[email protected]> | ||
*/ | ||
class CreateApplicationFeeTest extends CommandHandlerTestCase | ||
class CreateApplicationFeeTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -36,7 +36,7 @@ | |
* | ||
* @author Rob Caiger <[email protected]> | ||
*/ | ||
class CreateApplicationTest extends CommandHandlerTestCase | ||
class CreateApplicationTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
||
|
@@ -26,7 +26,7 @@ | |
* | ||
* @author Mat Evans <[email protected]> | ||
*/ | ||
class CreateFeeTest extends CommandHandlerTestCase | ||
class CreateFeeTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -24,7 +24,7 @@ | |
* | ||
* @author Rob Caiger <[email protected]> | ||
*/ | ||
class CreateOperatingCentreTest extends CommandHandlerTestCase | ||
class CreateOperatingCentreTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -26,7 +26,7 @@ | |
* | ||
* @author Rob Caiger <[email protected]> | ||
*/ | ||
class CreateSnapshotTest extends CommandHandlerTestCase | ||
class CreateSnapshotTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -14,7 +14,7 @@ | |
* | ||
* @author Mat Evans <[email protected]> | ||
*/ | ||
class CreateTexTaskTest extends CommandHandlerTestCase | ||
class CreateTexTaskTest extends AbstractCommandHandlerTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
|
Oops, something went wrong.