From 6141704c47591b24f85aa7998b0ecf67593fa64f Mon Sep 17 00:00:00 2001 From: Akash Karangale Date: Wed, 14 Feb 2024 17:14:38 +0530 Subject: [PATCH] GL-2039: Updated test file to resolve error in test checks. --- src/Command/CodeStudio/CodeStudioWizardCommand.php | 3 ++- .../CodeStudio/CodeStudioPipelinesMigrateCommandTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/CodeStudio/CodeStudioWizardCommand.php b/src/Command/CodeStudio/CodeStudioWizardCommand.php index e4c6cd7ab..87a1d0d75 100644 --- a/src/Command/CodeStudio/CodeStudioWizardCommand.php +++ b/src/Command/CodeStudio/CodeStudioWizardCommand.php @@ -42,7 +42,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int // But, we specifically need an API Token key-pair of Code Studio. // So we reauthenticate to be sure we're using the provided credentials. $this->reAuthenticate($cloudKey, $cloudSecret, $this->cloudCredentials->getBaseUri(), $this->cloudCredentials->getAccountsUri()); - + $phpVersion = NULL; + $nodeVersion = NULL; $projectType = [ 'Drupal_project', 'Node_project', diff --git a/tests/phpunit/src/Commands/CodeStudio/CodeStudioPipelinesMigrateCommandTest.php b/tests/phpunit/src/Commands/CodeStudio/CodeStudioPipelinesMigrateCommandTest.php index 1c5a0e5a1..25d883f8d 100644 --- a/tests/phpunit/src/Commands/CodeStudio/CodeStudioPipelinesMigrateCommandTest.php +++ b/tests/phpunit/src/Commands/CodeStudio/CodeStudioPipelinesMigrateCommandTest.php @@ -92,7 +92,7 @@ public function testCommand(mixed $mockedGitlabProjects, mixed $inputs, mixed $a $this->mockRequest('getAccount'); $this->mockGitLabPermissionsRequest($this::$applicationUuid); $projects = $this->mockGetGitLabProjects($this::$applicationUuid, $this->gitLabProjectId, $mockedGitlabProjects); - $projects->variables($this->gitLabProjectId)->willReturn(CodeStudioCiCdVariables::getDefaults()); + $projects->variables($this->gitLabProjectId)->willReturn(CodeStudioCiCdVariables::getDefaultsForPhp()); $projects->update($this->gitLabProjectId, Argument::type('array')); $gitlabClient->projects()->willReturn($projects); $localMachineHelper->getFilesystem()->willReturn(new Filesystem())->shouldBeCalled();