-
Notifications
You must be signed in to change notification settings - Fork 132
Issue 33297: Eliminate AspectMock from DataExtensionUtilTest #856
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 33297: Eliminate AspectMock from DataExtensionUtilTest #856
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, @jilu1
This task was finished without creating new singletons, so it is not a blocker. You can proceed with the code review.
Thanks, Bohdan
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.
Any reason you closed PR ##849?
@@ -19,6 +19,8 @@ public static function setUpBeforeClass(): void | |||
if (!self::fileExists(DOCS_OUTPUT_DIR)) { | |||
mkdir(DOCS_OUTPUT_DIR, 0755, true); | |||
} | |||
// Should be used to clean AspectMock mocking before using PHPUnit mocking and Reflection. | |||
AspectMock::clean(); |
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.
This Aspect Mock usage needs to be removed.
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, @jilu1
It is temporarily. When all PRs merged we will proceed with the AspectMock eliminating in this class.
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
Got it. Thanks for the explanation!
Change looks good. Please address the comment inlined. |
@@ -19,6 +19,8 @@ public static function setUpBeforeClass(): void | |||
if (!self::fileExists(DOCS_OUTPUT_DIR)) { | |||
mkdir(DOCS_OUTPUT_DIR, 0755, true); | |||
} | |||
// Should be used to clean AspectMock mocking before using PHPUnit mocking and Reflection. | |||
AspectMock::clean(); |
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
Got it. Thanks for the explanation!
@magento import pull request to https://github.com/magento-commerce/magento2-functional-testing-framework |
@jilu1 the pull request successfully imported. |
Description
Eliminated AspectMock usage from
dev/tests/unit/Magento/FunctionalTestFramework/DataGenerator/Util/DataExtensionUtilTest.php
Fixed Issues (if relevant)
Contribution checklist