diff --git a/tests/Database/PruneCommandTest.php b/tests/Database/PruneCommandTest.php index 0e7d286cd728..a381a71b36e6 100644 --- a/tests/Database/PruneCommandTest.php +++ b/tests/Database/PruneCommandTest.php @@ -171,7 +171,7 @@ protected function artisan($arguments) return $output; } - public function tearDown(): void + protected function tearDown(): void { parent::tearDown(); diff --git a/tests/Foundation/Testing/Traits/CanConfigureMigrationCommandsTest.php b/tests/Foundation/Testing/Traits/CanConfigureMigrationCommandsTest.php index 2dacc8a024d4..cb97988ac048 100644 --- a/tests/Foundation/Testing/Traits/CanConfigureMigrationCommandsTest.php +++ b/tests/Foundation/Testing/Traits/CanConfigureMigrationCommandsTest.php @@ -10,7 +10,7 @@ class CanConfigureMigrationCommandsTest extends TestCase { protected $traitObject; - protected function setup(): void + protected function setUp(): void { $this->traitObject = $this->getObjectForTrait(CanConfigureMigrationCommands::class); } diff --git a/tests/Integration/Database/EloquentMassPrunableTest.php b/tests/Integration/Database/EloquentMassPrunableTest.php index 75f0b0f2fc11..edfc0cb7453a 100644 --- a/tests/Integration/Database/EloquentMassPrunableTest.php +++ b/tests/Integration/Database/EloquentMassPrunableTest.php @@ -94,7 +94,7 @@ public function testPrunesSoftDeletedRecords() $this->assertEquals(2000, MassPrunableSoftDeleteTestModel::withTrashed()->count()); } - public function tearDown(): void + protected function tearDown(): void { parent::tearDown(); diff --git a/tests/Testing/AssertRedirectToSignedRouteTest.php b/tests/Testing/AssertRedirectToSignedRouteTest.php index 601f269d931c..8278f5c88c44 100644 --- a/tests/Testing/AssertRedirectToSignedRouteTest.php +++ b/tests/Testing/AssertRedirectToSignedRouteTest.php @@ -90,7 +90,7 @@ public function testAssertRedirectToSignedRouteWithRouteNameToTemporarySignedRou ->assertRedirectToSignedRoute('signed-route'); } - public function tearDown(): void + protected function tearDown(): void { parent::tearDown(); diff --git a/tests/Testing/Concerns/InteractsWithDeprecationHandlingTest.php b/tests/Testing/Concerns/InteractsWithDeprecationHandlingTest.php index f5d711ca8605..7314db07d6a9 100644 --- a/tests/Testing/Concerns/InteractsWithDeprecationHandlingTest.php +++ b/tests/Testing/Concerns/InteractsWithDeprecationHandlingTest.php @@ -14,7 +14,7 @@ class InteractsWithDeprecationHandlingTest extends TestCase protected $deprecationsFound = false; - public function setUp(): void + protected function setUp(): void { parent::setUp(); @@ -42,7 +42,7 @@ public function testWithoutDeprecationHandling() trigger_error('Something is deprecated', E_USER_DEPRECATED); } - public function tearDown(): void + protected function tearDown(): void { set_error_handler($this->original); diff --git a/tests/Testing/Concerns/TestDatabasesTest.php b/tests/Testing/Concerns/TestDatabasesTest.php index 9b303c13a560..7ddeefe27e91 100644 --- a/tests/Testing/Concerns/TestDatabasesTest.php +++ b/tests/Testing/Concerns/TestDatabasesTest.php @@ -97,7 +97,7 @@ public function databaseUrls() ]; } - public function tearDown(): void + protected function tearDown(): void { parent::tearDown(); diff --git a/tests/Testing/Console/RouteListCommandTest.php b/tests/Testing/Console/RouteListCommandTest.php index 37c9d2845b69..a755de7da16b 100644 --- a/tests/Testing/Console/RouteListCommandTest.php +++ b/tests/Testing/Console/RouteListCommandTest.php @@ -82,7 +82,7 @@ public function testDisplayRoutesForCliInVerboseMode() ->expectsOutput(''); } - public function tearDown(): void + protected function tearDown(): void { parent::tearDown(); diff --git a/tests/Testing/ParallelTestingTest.php b/tests/Testing/ParallelTestingTest.php index fef3eecd5f7d..4f7aac825423 100644 --- a/tests/Testing/ParallelTestingTest.php +++ b/tests/Testing/ParallelTestingTest.php @@ -97,7 +97,7 @@ public function callbacks() ]; } - public function tearDown(): void + protected function tearDown(): void { parent::tearDown();