From 73eaeb13c679fe6d9585844ae63ea95dc0e7a6be Mon Sep 17 00:00:00 2001 From: robert dennis <31261583+robertdrakedennis@users.noreply.github.com> Date: Fri, 5 Jun 2026 12:26:45 -0400 Subject: [PATCH] Update RunHooksCommandTest.php --- .../Commands/Environment/Addons/RunHooksCommandTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Console/Commands/Environment/Addons/RunHooksCommandTest.php b/tests/Unit/Console/Commands/Environment/Addons/RunHooksCommandTest.php index 3ce5bce39..6685a7225 100644 --- a/tests/Unit/Console/Commands/Environment/Addons/RunHooksCommandTest.php +++ b/tests/Unit/Console/Commands/Environment/Addons/RunHooksCommandTest.php @@ -5,6 +5,7 @@ namespace Pterodactyl\Tests\Unit\Console\Commands\Environment\Addons; use Illuminate\Console\Command; use Pterodactyl\Tests\TestCase; use Illuminate\Support\Facades\File; +use Illuminate\Testing\PendingCommand; use Illuminate\Support\Facades\Process; class RunHooksCommandTest extends TestCase @@ -97,7 +98,7 @@ class RunHooksCommandTest extends TestCase Process::assertNothingRan(); } - private function runHooks(string $event = 'post-install'): \Illuminate\Testing\PendingCommand + private function runHooks(string $event = 'post-install'): PendingCommand { return $this->artisan('p:environment:addons:run-hooks', ['event' => $event, '--no-interaction' => true]); }