-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added prompt for php version for cs:wizard command #1594
Conversation
Thanks for your contribution. Dane returns in mid-October. We'll look into finalizing and merging this then. Continue fixing tests and getting this as ready as can be in the interim! |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1594 +/- ##
============================================
- Coverage 91.76% 91.68% -0.08%
Complexity 1809 1809
============================================
Files 124 124
Lines 6471 6485 +14
============================================
+ Hits 5938 5946 +8
- Misses 533 539 +6
☔ View full report in Codecov by Sentry. |
tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php
Outdated
Show resolved
Hide resolved
@@ -46,6 +46,15 @@ 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()); | |||
|
|||
$phpVersions = [ | |||
'PHP_version_8.1' => "8.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yuck. Did you pick these array keys because PHPCS was complaining or something?
Thanks, this mostly looks good. Just FYI, you could kill some of the mutants by improving the test cases. |
Motivation
Fixes # GL-1836
Proposed changes
Add a prompt to choose php version between two of them. Either 8.1 or 8.2
Alternatives considered
Testing steps
run command
./bin/acli cs:wizard
and CLI should ask to choose PHP version. Once steps are completed then verify PHP_VERSION variable should get added to code studio UI../bin/acli ckc