Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit 9 Shift #109

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class ApplicationApiIntegrationTestCase extends IntegrationTestCase
* Bootstrap application API tests. Creates a default admin user and associated API key
* and also sets some default headers required for accessing the API.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CreateNewAllocationTest extends ClientApiIntegrationTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DeleteBackupTest extends ClientApiIntegrationTestCase
{
private MockInterface $repository;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SftpAuthenticationControllerTest extends IntegrationTestCase
/**
* Sets up the tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/IntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class IntegrationTestCase extends TestCase
'Accept' => 'application/json',
];

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FindAssignableAllocationServiceTest extends IntegrationTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DatabaseManagementServiceTest extends IntegrationTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DeployServerDatabaseServiceTest extends IntegrationTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class FindViableNodesServiceTest extends IntegrationTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BuildModificationServiceTest extends IntegrationTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ServerCreationServiceTest extends IntegrationTestCase
/**
* Stub the calls to Wings so that we don't actually hit those API endpoints.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ServerDeletionServiceTest extends IntegrationTestCase
/**
* Stub out services that we don't want to test in here.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SuspensionServiceTest extends IntegrationTestCase
/**
* Setup test instance.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class VariableValidatorServiceTest extends IntegrationTestCase
{
protected Egg $egg;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abstract class TestCase extends BaseTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DaemonAuthenticateTest extends MiddlewareTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Http/Middleware/LanguageMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LanguageMiddlewareTest extends MiddlewareTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Http/Middleware/MaintenanceMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MaintenanceMiddlewareTest extends MiddlewareTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Http/Middleware/MiddlewareTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract class MiddlewareTestCase extends TestCase
/**
* Setup tests with a mocked request object and normal attributes.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RedirectIfAuthenticatedTest extends MiddlewareTestCase
/**
* Setup tests.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down