-
Notifications
You must be signed in to change notification settings - Fork 132
33582: Eliminated AspectMock from MagentoTestCase.php #863
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
33582: Eliminated AspectMock from MagentoTestCase.php #863
Conversation
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.
Hello @anzin
Thank you for your contribution.
It looks well for me.
…ock-from-magento-test-case # Conflicts: # dev/tests/unit/Util/MagentoTestCase.php
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.
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 good except file_exist change
Could you please revert to how it was
public static function setUpBeforeClass(): void | ||
{ | ||
if (!self::fileExists(DOCS_OUTPUT_DIR)) { | ||
if (!file_exists(DOCS_OUTPUT_DIR)) { |
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 revert this change
\PHPUnit\Framework\Assert::fileExists will exist in version which support PHP 8
@anzin please take a look at my comment |
…ing-framework into improvement/mftf-33582-eliminate-aspect-mock-from-magento-test-case # Conflicts: # dev/tests/unit/Util/MagentoTestCase.php
…-aspect-mock-from-magento-test-case' into improvement/mftf-33582-eliminate-aspect-mock-from-magento-test-case
Hello @okolesnyk, I've reverted the method fileExists(), please check if everything is well. Thanks |
@magento import pull request to https://github.com/magento-commerce/magento2-functional-testing-framework |
@okolesnyk the pull request successfully imported. |
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.
@anzin Please bring the branch up to date and fix unit test failures.
…ing-framework into improvement/mftf-33582-eliminate-aspect-mock-from-magento-test-case
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.
@bohdan-harniuk Great Job on your team! |
Thank you, @jilu1! I'll proceed with the requested changes! Thanks, Bohdan |
…ing-framework into improvement/mftf-33582-eliminate-aspect-mock-from-magento-test-case
4932fe6
4932fe6
to
71596ba
Compare
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.
@jilu1, I have removed AspectMock as a package from the composer.
But before doing this I fixed few files that still used AspectMock and removed its configuration from the _bootstrap.php file.
Please, proceed with the code review.
Thanks,
Bohdan
9b2f9a3
to
4d71876
Compare
4d71876
to
6fa4ad0
Compare
Description
I've eliminated AspectMock from
\tests\unit\Util\MagentoTestCase
.This PR needs to be merged after all PRs with the eliminated AspectMock, will be merged.
Related Pull Requests
#852
#857
#843
#837
#848
#846
#845
#859
#856
#855
#842
#839
#853
#840
#844
#850
Fixed Issues (if relevant)
Contribution checklist