mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-20 11:44:05 +00:00
Hot fix #280
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Console\Commands;
|
|||||||
|
|
||||||
use App\Space\Updater;
|
use App\Space\Updater;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
use Illuminate\Support\Facades\File;
|
||||||
|
|
||||||
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
|
// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
|
||||||
class UpdateCommand extends Command
|
class UpdateCommand extends Command
|
||||||
|
|||||||
10
tests/Unit/Console/UpdateCommandTest.php
Normal file
10
tests/Unit/Console/UpdateCommandTest.php
Normal 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);
|
||||||
|
});
|
||||||
@@ -1 +1 @@
|
|||||||
2.2.0-alpha2
|
2.2.1
|
||||||
|
|||||||
Reference in New Issue
Block a user