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'];