From cbb1ed812beef786a6902eda2fb507703b6d52f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 16 Nov 2026 11:41:51 +0100 Subject: [PATCH] test(UpsertEmployeesFormFile): assert result is PendingCommand --- .../App/Console/Commands/UpsertEmployeesFormFileTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Feature/App/Console/Commands/UpsertEmployeesFormFileTest.php b/tests/Feature/App/Console/Commands/UpsertEmployeesFormFileTest.php index e3c0b898..fea882cb 100644 --- a/tests/Feature/App/Console/Commands/UpsertEmployeesFormFileTest.php +++ b/tests/Feature/App/Console/Commands/UpsertEmployeesFormFileTest.php @@ -3,6 +3,8 @@ declare(strict_types=1); use Illuminate\Console\Command; +use Illuminate\Testing\PendingCommand; +use Webmozart\Assert\Assert; afterEach(function (): void { \Mockery::close(); @@ -19,8 +21,9 @@ describe('UpsertEmployeesFormFile command', function (): void { 'file' => $filePath, ]); + Assert::isInstanceOf($result, PendingCommand::class); + // THEN $result->assertExitCode(Command::FAILURE); }); - });