From 931563e91529dc9a2664bea11851ba4dbf67bd40 Mon Sep 17 00:00:00 2001 From: Akash Karangale Date: Wed, 28 Feb 2024 17:56:50 +0530 Subject: [PATCH] GL-2039: Add assertion to kill mutant FalseValue and TrueValue. --- .../src/Commands/CodeStudio/CodeStudioWizardCommandTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php b/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php index 865576678..fee9dde1d 100644 --- a/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php +++ b/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php @@ -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); } }