Skip to content
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 CheckPlatformReqsCommand Test #11079

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jimlah
Copy link
Contributor

@Jimlah Jimlah commented Sep 25, 2022

No description provided.

Comment on lines +113 to +121
'composerJson' => [
'require' => [
'first/pkg' => '^2.0',
'second/pkg' => '3.*',
],
'require-dev' => [
'dev/pkg' => '~2.0',
],
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is lots of duplication and cruft as these are entirely unnecessary to run this test. Would be nice to reduce duplication at least.

Comment on lines +47 to +55
'composerJson' => [
'require' => [
'first/pkg' => '^2.0',
'second/pkg' => '3.*',
],
'require-dev' => [
'dev/pkg' => '~2.0',
],
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of duplication here too, and it doesn't seem to provide much value as you only check the first line of output.

It'd be more valuable to actually check behavior i.e. make sure that the installed packages above in testCheckPlatformReqs have some requirements on platform and then check that the output is pass or fail depending if it's a valid requirement or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I will work on that.

@Seldaek Seldaek added this to the 2.5 milestone Oct 12, 2022
@Seldaek Seldaek modified the milestones: 2.5, 2.6 Nov 24, 2022
@Seldaek Seldaek modified the milestones: 2.6, 2.7 Jul 21, 2023
@Seldaek Seldaek modified the milestones: 2.7, 2.8 Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants