Skip to content

Commit

Permalink
GL-2039: Add assertion to kill mutant FalseValue and TrueValue.
Browse files Browse the repository at this point in the history
  • Loading branch information
akashkska committed Feb 28, 2024
1 parent 828996e commit 931563e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ protected function mockGitLabVariables(int $gitlabProjectId, ObjectProphecy $pro
$projects->addVariable($gitlabProjectId, Argument::type('string'), Argument::type('string'), Argument::type('bool'), NULL, Argument::type('array'))->shouldBeCalled();
foreach ($variables as $variable) {
$projects->updateVariable($this->gitLabProjectId, $variable['key'], $variable['value'], FALSE, NULL, ['masked' => TRUE, 'variable_type' => 'env_var'])->shouldBeCalled();
$maskedValue = $variable['masked'];
$this->assertEquals(TRUE, $maskedValue);
$protectedValue = $variable['protected'];
$this->assertEquals(FALSE, $protectedValue);
}
}

Expand Down

0 comments on commit 931563e

Please sign in to comment.