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

Fix Functional Test Magento\Sales\Test\TestCase\CreateCreditMemoEntityTest::test with data set "CreateCreditMemoEntityTestVariation1_0" #1163

Closed
smoskaluk opened this issue May 16, 2018 · 0 comments
Milestone

Comments

@smoskaluk
Copy link

smoskaluk commented May 16, 2018

Preconditions

  1. Magento with MSI 'Single Stock' mode

Steps to reproduce

  1. Run Test Magento\Sales\Test\TestCase\CreateCreditMemoEntityTest::test with data set "CreateCreditMemoEntityTestVariation1_0"

Expected result

  1. Test should pass successfully.

Actual result

  1. Test fails.
    Form data not equals to passed from fixture:
    quantity_and_stock_status:
    • qty: "777" instead of "776"
      Failed asserting that false is true.

/var/www/html/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductForm.php:72
/var/www/html/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertProductQtyDecreasedAfterCreditmemo.php:71
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/ObjectManager/Factory.php:57
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/ObjectManager.php:81
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/Constraint/AbstractConstraint.php:155
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/Constraint/Composite.php:109
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Injectable.php:231
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Functional.php:300
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Functional.php:217
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Injectable.php:210
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Scenario.php:81
/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Injectable.php:166

Notice:

Creating Credit Memo with 'return to stock' not affecting field "Quantity", as well as creating Order - all changes applying to 'salable quantity' of the product with help of reservations and compensational reservations in DB

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

6 participants