ldc-cocotte/tests/Feature/App/Console/Commands/UpsertEmployeesFormFileTest.php
Jérémy Munsch 74ab9b3041
refactor: reorganize imports across multiple controllers and jobs
This commit refactors the import statements in various controllers and jobs
to improve code organization and readability. Unused imports were removed,
and necessary imports were added to ensure proper functionality.
2026-11-10 18:15:32 +01:00

26 lines
574 B
PHP

<?php
declare(strict_types=1);
use Illuminate\Console\Command;
afterEach(function (): void {
\Mockery::close();
});
describe('UpsertEmployeesFormFile command', function (): void {
it('returns failure when input file does not exist', function (): void {
/** @var \Tests\TestCase $this */
// GIVEN
$filePath = '/tmp/does-not-exist.csv';
// WHEN
$result = $this->artisan('uwil:employees:upsert', [
'file' => $filePath,
]);
// THEN
$result->assertExitCode(Command::FAILURE);
});
});