From 5d215b380a18786e18189407a2c28ac87ad03612 Mon Sep 17 00:00:00 2001 From: Prakhar Jain Date: Mon, 8 Jul 2024 16:32:38 +0530 Subject: [PATCH] GL-2753 : CS Wizard updated node version select values --- src/Command/CodeStudio/CodeStudioWizardCommand.php | 6 +++--- .../Commands/CodeStudio/CodeStudioWizardCommandTest.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Command/CodeStudio/CodeStudioWizardCommand.php b/src/Command/CodeStudio/CodeStudioWizardCommand.php index afeea6b30..43a5aec36 100644 --- a/src/Command/CodeStudio/CodeStudioWizardCommand.php +++ b/src/Command/CodeStudio/CodeStudioWizardCommand.php @@ -60,10 +60,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int break; case "Node_project": $nodeVersions = [ - 'NODE_version_18.17.1' => "18.17.1", - 'NODE_version_20.5.1' => "20.5.1", + 'NODE_version_18' => "18", + 'NODE_version_20' => "20", ]; - $project = $this->io->choice('Select a NODE version', array_values($nodeVersions), "18.17.1"); + $project = $this->io->choice('Select a NODE version', array_values($nodeVersions), "20"); $project = array_search($project, $nodeVersions, TRUE); $nodeVersion = $nodeVersions[$project]; break; diff --git a/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php b/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php index b312847b1..4014ec995 100644 --- a/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php +++ b/tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php @@ -141,7 +141,7 @@ public function providerTestCommand(): array { 'y', // Select a project type Node_project. '1', - // Select NODE version 18.17.1. + // Select NODE version 18. '0', // Do you want to continue? 'y', @@ -163,7 +163,7 @@ public function providerTestCommand(): array { 'y', // Select a project type Node_project. '1', - // Select NODE version 20.5.1. + // Select NODE version 20. '1', // Do you want to continue? 'y', @@ -228,7 +228,7 @@ public function providerTestCommand(): array { $this->secret, // Select a project type Node_project. '1', - // Select NODE version 18.17.1. + // Select NODE version 18. '0', // Do you want to continue? 'y', @@ -270,7 +270,7 @@ public function providerTestCommand(): array { $this->secret, // Select a project type Node_project. '1', - // Select NODE version 20.5.1. + // Select NODE version 20. '1', // Do you want to continue? 'y',