Skip to content
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

Avoid code fragments duplication in products_rollback.php and products_bundle_rollback.php fixtures #1420

Closed
nmalevanec opened this issue Jun 22, 2018 · 1 comment
Assignees

Comments

@nmalevanec
Copy link
Contributor

Preconditions

  1. Magento with MSI.

Steps to reproduce

  1. Observe https://github.com/magento-engcom/msi/blob/14f70cd6393c62b0a821cd7d77bff5673871eb01/app/code/Magento/InventoryApi/Test/_files/products_rollback.php#L33-L58 and https://github.com/magento-engcom/msi/blob/14f70cd6393c62b0a821cd7d77bff5673871eb01/app/code/Magento/InventoryShipping/Test/_files/products_bundle_rollback.php#L32-L52 code fragments.

Expected result

  1. There should be no code fragments duplication and therefore Magento\Test\Php\LiveCodeTest::testCopyPaste should pass successfully.

Actual result

  1. Two fragments are identical, so Magento\Test\Php\LiveCodeTest::testCopyPaste fails.
@naydav
Copy link

naydav commented Jul 4, 2018

@naydav naydav closed this as completed Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants