Skip to content

Commit 2fecba2

Browse files
committed
Fix tests by adding required return type hints
1 parent 6967b76 commit 2fecba2

File tree

94 files changed

+96
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+96
-96
lines changed

tests/Browser/BrowserTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function setUpBeforeClass()
4949
/**
5050
* Setup tests.
5151
*/
52-
protected function setUp()
52+
protected function setUp(): void
5353
{
5454
// Don't accidentally run the migrations aganist the non-testing database. Ask me
5555
// how many times I've accidentally dropped my database...
@@ -97,7 +97,7 @@ protected function newBrowser($driver): PterodactylBrowser
9797
* Tear down the test and delete all cookies from the browser instance to address
9898
* instances where the test would be kicked over to the login page.
9999
*/
100-
protected function tearDown()
100+
protected function tearDown(): void
101101
{
102102
/** @var \Pterodactyl\Tests\Browser\PterodactylBrowser $browser */
103103
foreach (static::$browsers as $browser) {

tests/Browser/Processes/Authentication/LoginProcessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LoginProcessTest extends BrowserTestCase
1414
/**
1515
* Setup tests.
1616
*/
17-
protected function setUp()
17+
protected function setUp(): void
1818
{
1919
parent::setUp();
2020

tests/Browser/Processes/Dashboard/DashboardTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class DashboardTestCase extends BrowserTestCase
1414
/**
1515
* Setup tests and provide a default user to calling functions.
1616
*/
17-
protected function setUp()
17+
protected function setUp(): void
1818
{
1919
parent::setUp();
2020

tests/Integration/Api/Application/ApplicationApiIntegrationTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract class ApplicationApiIntegrationTestCase extends IntegrationTestCase
3131
* Bootstrap application API tests. Creates a default admin user and associated API key
3232
* and also sets some default headers required for accessing the API.
3333
*/
34-
public function setUp()
34+
public function setUp(): void
3535
{
3636
parent::setUp();
3737

tests/Integration/Api/Application/Nests/EggControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class EggControllerTest extends ApplicationApiIntegrationTestCase
1818
/**
1919
* Setup tests.
2020
*/
21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424

tests/Integration/Api/Application/Nests/NestControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase
1717
/**
1818
* Setup tests.
1919
*/
20-
public function setUp()
20+
public function setUp(): void
2121
{
2222
parent::setUp();
2323

tests/Integration/IntegrationTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class IntegrationTestCase extends TestCase
1212
/**
1313
* Setup base integration test cases.
1414
*/
15-
public function setUp()
15+
public function setUp(): void
1616
{
1717
parent::setUp();
1818

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class TestCase extends BaseTestCase
1212
/**
1313
* Setup tests.
1414
*/
15-
public function setUp()
15+
public function setUp(): void
1616
{
1717
parent::setUp();
1818

@@ -22,7 +22,7 @@ public function setUp()
2222
/**
2323
* Tear down tests.
2424
*/
25-
protected function tearDown()
25+
protected function tearDown(): void
2626
{
2727
parent::tearDown();
2828

tests/Unit/Commands/Environment/EmailSettingsCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class EmailSettingsCommandTest extends CommandTestCase
2929
/**
3030
* Setup tests.
3131
*/
32-
public function setUp()
32+
public function setUp(): void
3333
{
3434
parent::setUp();
3535

tests/Unit/Commands/Location/DeleteLocationCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DeleteLocationCommandTest extends CommandTestCase
3636
/**
3737
* Setup tests.
3838
*/
39-
public function setUp()
39+
public function setUp(): void
4040
{
4141
parent::setUp();
4242

0 commit comments

Comments
 (0)