modified version handling
All checks were successful
CI/CD Pipeline / deploy (push) Successful in 24s
CI/CD Pipeline / promote_stable (push) Successful in 2s

This commit is contained in:
2026-02-24 19:29:04 +01:00
parent 6a2316c6f4
commit 16e0444fa3
3 changed files with 47 additions and 10 deletions

View File

@@ -20,10 +20,10 @@ it('version set fails when invalid version', function (): void {
expect($exitCode)->toBe(1);
});
it('version fetch fails when no version', function (): void {
it('version fetch succeeds without db version when composer version exists', function (): void {
Setting::where('key', 'version')->delete();
$exitCode = \Illuminate\Support\Facades\Artisan::call('version:fetch');
expect($exitCode)->toBe(1);
expect($exitCode)->toBe(0);
});
it('version release fails when missing config', function (): void {