test(UpsertEmployeesFormFile): assert result is PendingCommand
This commit is contained in:
parent
d45022d8a4
commit
cbb1ed812b
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue