Skip to content

33297: Eliminate AspectMock from DataExtensionUtilTest #849

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

@karyna-t karyna-t commented Jul 5, 2021

Description

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

In the scope of this ticket I also refactored
dev/tests/unit/Magento/FunctionalTestFramework/DataGenerator/Persist/OperationDataArrayResolverTest.php

DataObjectHandler instance, mocked with AspectMock, is not cleaned in OperationDataArrayResolverTest, thus it broke DataExtensionUtilTest after my refactoring. As our main purpose to eliminate AspectMock completely, I decided to refactor OperationDataArrayResolverTest also.

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

Copy link
Contributor

@andrewbess andrewbess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @karyna-tsymbal-atwix
Thank you for your work.

@karyna-t karyna-t changed the title Eliminate AspectMock from DataExtensionUtilTest 33297: Eliminate AspectMock from DataExtensionUtilTest Jul 7, 2021
@andrewbess andrewbess requested a review from jilu1 July 15, 2021 12:08
@bohdan-harniuk bohdan-harniuk added Partner: Atwix partners-contribution Pull Request is created by Magento Partner labels Jul 21, 2021
@jilu1
Copy link
Contributor

jilu1 commented Jul 22, 2021

@magento-engcom-team
Copy link

@jilu1 the pull request successfully imported.

@andrewbess andrewbess self-assigned this Jul 22, 2021
@karyna-t karyna-t closed this Jul 22, 2021
@karyna-t karyna-t force-pushed the improvement/mftf-33297-eliminate-aspect-mock-from-DataExtensionUtilTest-and-OperationDataArrayResolverTest branch from 29a3e1e to 9dfd3e3 Compare July 22, 2021 11:55
@jilu1
Copy link
Contributor

jilu1 commented Jul 22, 2021

@karyna-tsymbal-atwix
Any reason you closed this PR?

@karyna-t
Copy link
Contributor Author

Hi @jilu1 , there were some changes, a new PR is here: #856

@karyna-t karyna-t deleted the improvement/mftf-33297-eliminate-aspect-mock-from-DataExtensionUtilTest-and-OperationDataArrayResolverTest 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
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