Skip to content

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

Conversation

karyna-t
Copy link
Contributor

Description

Eliminated AspectMock usage from dev/tests/unit/Magento/FunctionalTestFramework/DataGenerator/Util/DataExtensionUtilTest.php

Fixed Issues (if relevant)

  1. Fixes [MFTF] Eliminate AspectMock from DataExtensionUtilTest (Complex!) magento2#33297: [MFTF] Eliminate AspectMock from DataExtensionUtilTest (Complex!)

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/verification tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)
  • Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests

@magento-engcom-team magento-engcom-team added Partner: Atwix partners-contribution Pull Request is created by Magento Partner labels Jul 22, 2021
@bohdan-harniuk bohdan-harniuk self-requested a review July 22, 2021 12:08
Copy link
Contributor

@bohdan-harniuk bohdan-harniuk left a 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

@bohdan-harniuk bohdan-harniuk requested a review from jilu1 July 22, 2021 12:11
Copy link
Contributor

@jilu1 jilu1 left a 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();
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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!

@jilu1
Copy link
Contributor

jilu1 commented Jul 22, 2021

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();
Copy link
Contributor

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!

@jilu1
Copy link
Contributor

jilu1 commented Jul 22, 2021

@magento-engcom-team
Copy link

@jilu1 the pull request successfully imported.

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit 7b520d1 into magento:develop Jul 26, 2021
@karyna-t karyna-t deleted the improvement/mftf-33297-eliminate-aspect-mock-from-DataExtensionUtilTest branch September 30, 2021 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accept in progress Partner: Atwix partners-contribution Pull Request is created by Magento Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MFTF] Eliminate AspectMock from DataExtensionUtilTest (Complex!)
5 participants