mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 05:31:24 +00:00
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