CLI-1473: Pull default site if non-interactive. #2613
Annotations
1 error and 2 warnings
Mutation Testing
Process completed with exit code 1.
|
Mutation Testing:
src/Command/CommandBase.php#L1414
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if ($process->isSuccessful() && $sites) {
if ($key = array_search('default', $sites, true)) {
unset($sites[$key]);
- $sites = array_merge([0 => 'default'], $sites);
+ $sites = array_merge([-1 => 'default'], $sites);
}
return $sites;
}
|
Mutation Testing:
src/Command/CommandBase.php#L1414
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
if ($process->isSuccessful() && $sites) {
if ($key = array_search('default', $sites, true)) {
unset($sites[$key]);
- $sites = array_merge([0 => 'default'], $sites);
+ $sites = array_merge([1 => 'default'], $sites);
}
return $sites;
}
|