test(UpsertEmployeesFormFile): assert result is PendingCommand

This commit is contained in:
Jérémy Munsch 2026-11-16 11:41:51 +01:00
parent d45022d8a4
commit cbb1ed812b
No known key found for this signature in database
GPG key ID: 2AAECDA6B7330F91

View file

@ -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);
});
});