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 default_stock_configurable_products.php and product_configurable.php fixtures #1413

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

Comments

@nmalevanec
Copy link
Contributor

nmalevanec commented Jun 22, 2018

Preconditions

  1. Magento with MSI.

Steps to reproduce

  1. Observe https://github.com/magento-engcom/msi/blob/14f70cd6393c62b0a821cd7d77bff5673871eb01/app/code/Magento/InventoryConfigurableProduct/Test/_files/default_stock_configurable_products.php#L58-L88 and https://github.com/magento-engcom/msi/blob/14f70cd6393c62b0a821cd7d77bff5673871eb01/app/code/Magento/InventoryConfigurableProduct/Test/_files/product_configurable.php#L79-L135 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 almost 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