Created DownloadGeoLiteDbCommandTest

This commit is contained in:
Alejandro Celaya
2021-04-08 13:34:14 +02:00
parent f7b6f4ba19
commit 1f8994ca8b
4 changed files with 122 additions and 42 deletions

View File

@@ -51,11 +51,11 @@ class DownloadGeoLiteDbCommand extends Command
$this->progressBar->setProgress($downloaded);
});
if ($this->progressBar !== null) {
if ($this->progressBar === null) {
$io->info('GeoLite2 db file is up to date.');
} else {
$this->progressBar->finish();
$io->success('GeoLite2 db file properly downloaded.');
} else {
$io->info('GeoLite2 db file is up to date.');
}
return ExitCodes::EXIT_SUCCESS;