-
Notifications
You must be signed in to change notification settings - Fork 9.4k
ISSUE-27500: Fixed unit tests for module Magento_SampleData #27598
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
ISSUE-27500: Fixed unit tests for module Magento_SampleData #27598
Conversation
Hi @andrewbess. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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.
Please review the comments. Only minor changes to be introduced.
@@ -197,11 +210,11 @@ public function stubComposerJsonReader(array $composerJsonContent) | |||
} | |||
|
|||
/** | |||
* @return \PHPUnit_Framework_MockObject_MockObject | |||
* @return MockObject |
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.
* @return MockObject | |
* @return ReadInterface|MockObject |
@@ -178,11 +190,12 @@ public static function dataPackagesFromComposerSuggest() | |||
|
|||
/** | |||
* @param array $composerJsonContent | |||
* @return \PHPUnit_Framework_MockObject_MockObject | |||
* @return MockObject |
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.
* @return MockObject | |
* @return ReadInterface|MockObject |
public function stubComposerJsonReader( | ||
array $composerJsonContent | ||
): MockObject { |
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.
public function stubComposerJsonReader( | |
array $composerJsonContent | |
): MockObject { | |
public function stubComposerJsonReader(array $composerJsonContent): MockObject { |
Hi @lbajsarowicz, thank you for the review.
|
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.
✔️ Great job, thank you for your contribution.
Hi @lbajsarowicz, thank you for the review. |
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.
Hi @andrewbess
During testing, we faced the issue
PHPUnit 8
Run: vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Magento/SampleData/
@andrewbess Could you take a look?
Thanks!
Pull Request state was updated. Re-review required.
Hello @engcom-Alfa |
@andrewbess Please resolve the conflict |
…ps://github.com/andrewbess/magento2 into ISSUE-27500/Magento_SampleData � Conflicts: � app/code/Magento/SampleData/Test/Unit/Model/DependencyTest.php
Hello @slavvka |
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.
Looks fine for me.
Hi @andrewbess, thank you for your contribution! |
Description (*)
This PR partially updates unit tests in SampleData module
Other tests of this module have been updated in #27481
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Magento/SampleData/
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Magento/SampleData/
Questions or comments
Contribution checklist (*)