-
Notifications
You must be signed in to change notification settings - Fork 132
Eliminated Aspect Mock usage from ActionMergeUtilTest #837
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
Eliminated Aspect Mock usage from ActionMergeUtilTest #837
Conversation
85fb8c2
to
135fdf9
Compare
@vlmed was this PR closed intentionally? |
@sivaschenko. Yes i closed this PR. When I run only this test, it passes without errors, if I run with all the tests, it does not pass. The reason is in |
Got it, thanks @vlmed . I will add your PR to the issue description and unassign you from the issue |
…ing-framework into remove/aspect-mock-33304
Hello, @jilu1 I have a little bit helped for @vlmed with the aspect mock elimination here. Now all tests run fine. The problem was that AspectMock mocked the getInstance method of the DataObjectHandler class. In this test, we set mock to the INSTANCE variable through the ReflectionProperty. But we got the wrong mock instance, mocked by the AspectMock (the INSTANCE variable checked in the getInstance method...getInstance method mocked by the AspectMock and that mocked object returned before our mock on the INSTANCE variable). cc: @vlmed , @sivaschenko |
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.
Hello @vlmed
Thank you for your contribution.
Hello @bohdan-harniuk
Thank you for your helping @vlmed
The changes look great for me.
Hello, @jilu1 This task was finished without creating new singletons, so it is not a blocker. You can proceed with the code review. Thanks, Bohdan |
@magento import pull request to https://github.com/magento-commerce/magento2-functional-testing-framework |
@jilu1 the pull request successfully imported. |
Description
This PR will pass all tests after related PR will be merged
Eliminated Aspect Mock usage from ActionMergeUtilTest:
dev/tests/unit/Magento/FunctionalTestFramework/Test/Util/ActionMergeUtilTest.php
Related Pull Requests
#849
Fixed Issues (if relevant)
Contribution checklist