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

CI-239: fix placing multiple orders #41

Merged
merged 1 commit into from Apr 20, 2020
Merged

CI-239: fix placing multiple orders #41

merged 1 commit into from Apr 20, 2020

Conversation

mam08ixo
Copy link
Contributor

When creating multiple orders in a row (e.g. setting up several order fixtures for mass action testing), then \Magento\Quote\Model\QuoteAddressValidator::doValidate fails with an "Invalid customer address id" exception if the order gets created withCart, because the address has the customer ID of the previous order assigned. I did not get to the bottom of why exactly this happens. Creating the cart builder before logging the customer in is part of the issue.

The workaround is to have the order builder log the customer out after the order was placed. It is the order builder which initially logged the customer in, so it is just appropriate to reverse that / clean up state there.

@schmengler schmengler merged commit 7a7db57 into tddwizard:master Apr 20, 2020
@schmengler
Copy link
Collaborator

Thank you!

@mam08ixo mam08ixo deleted the CI-239 branch April 21, 2020 09:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants