Skip to content

GL-2039: Added prompt for nodejs and php project selection. #2119

GL-2039: Added prompt for nodejs and php project selection.

GL-2039: Added prompt for nodejs and php project selection. #2119

Triggered via pull request March 4, 2024 13:19
Status Success
Total duration 1m 44s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
1m 32s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
Mutation Testing: src/Command/CodeStudio/CodeStudioWizardCommand.php#L213
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $gitlabCicdExistingVariablesKeyed[$key] = $variable; } foreach ($gitlabCicdVariables as $variable) { - $this->checklist->addItem("Setting GitLab CI/CD variables for <comment>{$variable['key']}</comment>"); + if (!array_key_exists($variable['key'], $gitlabCicdExistingVariablesKeyed)) { $this->gitLabClient->projects()->addVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]); } else {
Mutation Testing: src/Command/CodeStudio/CodeStudioWizardCommand.php#L222
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } else { $this->gitLabClient->projects()->updateVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]); } - $this->checklist->completePreviousItem(); + } } private function setGitLabCiCdVariablesForNodeProject(array $project, string $cloudApplicationUuid, string $cloudKey, string $cloudSecret, string $projectAccessTokenName, string $projectAccessToken, string $nodeVersion) : void