This commit is contained in:
mchev
2026-03-24 12:13:40 +01:00
parent 254ed5ade0
commit ff3cab570a
3 changed files with 12 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Console\Commands;
use App\Space\Updater;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
class UpdateCommand extends Command

View File

@@ -0,0 +1,10 @@
<?php
use App\Console\Commands\UpdateCommand;
it('reads installed version from version file', function () {
$command = app(UpdateCommand::class);
$expectedVersion = preg_replace('~[\r\n]+~', '', file_get_contents(base_path('version.md')));
expect($command->getInstalledVersion())->toBe($expectedVersion);
});

View File

@@ -1 +1 @@
2.2.0-alpha2
2.2.1