CLI-1328: Pull command asks for environment twice #2259
Annotations
1 error and 3 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
src/Command/Pull/PullCommandBase.php#L130
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* @param bool $onDemand Force on-demand backup.
* @param bool $noImport Skip import.
*/
- protected function pullDatabase(InputInterface $input, OutputInterface $output, EnvironmentResponse $sourceEnvironment, bool $onDemand = FALSE, bool $noImport = FALSE, bool $multipleDbs = FALSE) : void
+ protected function pullDatabase(InputInterface $input, OutputInterface $output, EnvironmentResponse $sourceEnvironment, bool $onDemand = FALSE, bool $noImport = FALSE, bool $multipleDbs = true) : void
{
$this->setDirAndRequireProjectCwd($input);
if (!$noImport) {
|
Run Infection for added files only:
src/Command/Pull/PullDatabaseCommand.php#L42
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$multipleDbs = $input->hasOption('multiple-dbs') && $input->getOption('multiple-dbs');
// $noImport implies $noScripts.
$noScripts = $noImport || $noScripts;
- $this->setDirAndRequireProjectCwd($input);
+
$sourceEnvironment = $this->determineEnvironment($input, $output, TRUE);
$this->pullDatabase($input, $output, $sourceEnvironment, $onDemand, $noImport, $multipleDbs);
if (!$noScripts) {
|
Run Infection for added files only:
src/Command/Pull/PullDatabaseCommand.php#L43
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
// $noImport implies $noScripts.
$noScripts = $noImport || $noScripts;
$this->setDirAndRequireProjectCwd($input);
- $sourceEnvironment = $this->determineEnvironment($input, $output, TRUE);
+ $sourceEnvironment = $this->determineEnvironment($input, $output, false);
$this->pullDatabase($input, $output, $sourceEnvironment, $onDemand, $noImport, $multipleDbs);
if (!$noScripts) {
$this->runDrushCacheClear($this->getOutputCallback($output, $this->checklist), $this->checklist);
|
Loading