CLI-1225: The pull:database command fails silently if pv is not installed. #1989
Annotations
1 warning
Mutation Testing:
src/Command/Pull/PullCommandBase.php#L390
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
}
$this->logger->debug("Importing {$localDumpFilepath} to MySQL on local machine");
$this->localMachineHelper->checkRequiredBinariesExist(['gunzip', 'mysql']);
- if ($this->localMachineHelper->commandExists('pv')) {
+ if (!$this->localMachineHelper->commandExists('pv')) {
$command = "pv {$localDumpFilepath} --bytes --rate | gunzip | MYSQL_PWD={$dbPassword} mysql --host={$dbHost} --user={$dbUser} {$dbName}";
} else {
$this->io->warning('Install `pv` to see progress bar');
|