CLI-822: Add --task-wait option to API commands #2568
Annotations
1 error and 7 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
src/Command/Api/ApiCommandHelper.php#L104
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$inputDefinition = array_merge($inputDefinition, $bodyInputDefinition);
}
// Add --task-wait parameter for responses with notifications.
- if (array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
+ if (array_key_exists('responses', $schema) && array_key_exists(201, $schema['responses'])) {
$inputDefinition[] = new InputOption('task-wait', null, InputOption::VALUE_NONE, 'Wait for this task to complete');
}
$command->setDefinition(new InputDefinition($inputDefinition));
|
Run Infection for added files only:
src/Command/Api/ApiCommandHelper.php#L104
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$inputDefinition = array_merge($inputDefinition, $bodyInputDefinition);
}
// Add --task-wait parameter for responses with notifications.
- if (array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
+ if (array_key_exists('responses', $schema) && array_key_exists(203, $schema['responses'])) {
$inputDefinition[] = new InputOption('task-wait', null, InputOption::VALUE_NONE, 'Wait for this task to complete');
}
$command->setDefinition(new InputDefinition($inputDefinition));
|
Run Infection for added files only:
src/Command/Api/ApiCommandHelper.php#L104
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
$inputDefinition = array_merge($inputDefinition, $bodyInputDefinition);
}
// Add --task-wait parameter for responses with notifications.
- if (array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
+ if (!array_key_exists('responses', $schema) && !array_key_exists(202, $schema['responses'])) {
$inputDefinition[] = new InputOption('task-wait', null, InputOption::VALUE_NONE, 'Wait for this task to complete');
}
$command->setDefinition(new InputDefinition($inputDefinition));
|
Run Infection for added files only:
src/Command/Api/ApiCommandHelper.php#L104
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$inputDefinition = array_merge($inputDefinition, $bodyInputDefinition);
}
// Add --task-wait parameter for responses with notifications.
- if (array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
+ if (array_key_exists('responses', $schema) || array_key_exists(202, $schema['responses'])) {
$inputDefinition[] = new InputOption('task-wait', null, InputOption::VALUE_NONE, 'Wait for this task to complete');
}
$command->setDefinition(new InputDefinition($inputDefinition));
|
Run Infection for added files only:
src/Command/Api/ApiCommandHelper.php#L104
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
$inputDefinition = array_merge($inputDefinition, $bodyInputDefinition);
}
// Add --task-wait parameter for responses with notifications.
- if (array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
+ if (!(array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses']))) {
$inputDefinition[] = new InputOption('task-wait', null, InputOption::VALUE_NONE, 'Wait for this task to complete');
}
$command->setDefinition(new InputDefinition($inputDefinition));
|
Run Infection for added files only:
src/Command/Api/ApiCommandHelper.php#L104
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
$inputDefinition = array_merge($inputDefinition, $bodyInputDefinition);
}
// Add --task-wait parameter for responses with notifications.
- if (array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
+ if (!array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
$inputDefinition[] = new InputOption('task-wait', null, InputOption::VALUE_NONE, 'Wait for this task to complete');
}
$command->setDefinition(new InputDefinition($inputDefinition));
|
Run Infection for added files only:
src/Command/Api/ApiCommandHelper.php#L104
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
$inputDefinition = array_merge($inputDefinition, $bodyInputDefinition);
}
// Add --task-wait parameter for responses with notifications.
- if (array_key_exists('responses', $schema) && array_key_exists(202, $schema['responses'])) {
+ if (array_key_exists('responses', $schema) && !array_key_exists(202, $schema['responses'])) {
$inputDefinition[] = new InputOption('task-wait', null, InputOption::VALUE_NONE, 'Wait for this task to complete');
}
$command->setDefinition(new InputDefinition($inputDefinition));
|
Loading