CLI-1328: Pull command asks for environment twice #2259
mutation.yml
on: pull_request
Mutation Testing
8m 35s
Annotations
1 error and 3 warnings
Mutation Testing
Process completed with exit code 1.
|
Mutation Testing:
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) {
|
Mutation Testing:
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) {
|
Mutation Testing:
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);
|