mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-08 14:04:50 +00:00
11 lines
324 B
PHP
11 lines
324 B
PHP
<?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);
|
|
});
|