From 84f8b6094b5ffe2953227d0b7150e916ee9bd739 Mon Sep 17 00:00:00 2001 From: Akash Karangale Date: Wed, 28 Feb 2024 20:59:52 +0530 Subject: [PATCH] Revert "GL-2039: Applied fix for mutant TRUEVAL and FLASEVAL." This reverts commit 0dac450ad6b83df7307ce3d7b520a6953f7f4e6a. --- .../Commands/CodeStudio/CodeStudioWizardCommandTest.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php b/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php index ef28ceab0..fee9dde1d 100644 --- a/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php +++ b/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php @@ -357,11 +357,6 @@ public function testCommand(array $mockedGitlabProjects, array $inputs, array $a // Assertions. $this->assertEquals(0, $this->getStatusCode()); - - $this->mockGitLabVariables($this->gitLabProjectId, $projects, FALSE, TRUE); - $this->executeCommand($args, $inputs); - $this->assertEquals(1, $this->getStatusCode()); - } /** @@ -520,12 +515,12 @@ protected function mockGitlabProjectType(int $gitlabProjectId): void { $this->assertCount(2, $projectType); } - protected function mockGitLabVariables(int $gitlabProjectId, ObjectProphecy $projects, bool $masked = TRUE, bool $protected = FALSE): void { + protected function mockGitLabVariables(int $gitlabProjectId, ObjectProphecy $projects): void { $variables = $this->getMockGitLabVariables(); $projects->variables($gitlabProjectId)->willReturn($variables); $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'], $protected, NULL, ['masked' => $masked, 'variable_type' => 'env_var'])->shouldBeCalled(); + $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'];