Skip to content

CLI-1328: Pull command asks for environment twice #2259

CLI-1328: Pull command asks for environment twice

CLI-1328: Pull command asks for environment twice #2259

Triggered via pull request April 22, 2024 21:39
Status Failure
Total duration 8m 46s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
8m 35s
Mutation Testing
Fit to window
Zoom out
Zoom in

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);