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.
26 lines
574 B
PHP
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);
|
|
});
|
|
|
|
});
|