Skip to content

Conversation

@eduard13
Copy link
Contributor

@eduard13 eduard13 commented Oct 4, 2018

Original PR #18490

Description

This PR adds missing unit tests for AssignOrderToCustomerObserver class:

  • \Magento\Sales\Observer\AssignOrderToCustomerObserver

Fixed Issues (if relevant)

N/A

Manual testing scenarios

N/A

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/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@eduard13 eduard13 requested a review from rogyar October 4, 2018 09:34
@magento-engcom-team magento-engcom-team added Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Component: Sales Release Line: 2.2 labels Oct 4, 2018
@magento-engcom-team magento-engcom-team added this to the Release: 2.2.8 milestone Oct 7, 2018
@rogyar
Copy link
Contributor

rogyar commented Oct 7, 2018

Hi @eduard13. According to the Magento Contributors Guidelines (https://devdocs.magento.com/guides/v2.2/contributor-guide/contributing.html#rules) changes to 2.2-develop branch can be accepted only after they are applied to 2.3-develop branch. Please, consider creating the same PR for 2.3-develop branch. I'm putting this PR on hold in the meanwhile.
Thank you.

@eduard13 eduard13 changed the title [Sales] Covering the AssignOrderToCustomerObserver by Unit Test [Backport] [Sales] Covering the AssignOrderToCustomerObserver by Unit Test Oct 10, 2018
@okorshenko okorshenko closed this Oct 19, 2018
@okorshenko
Copy link
Contributor

Hi @eduard13

Thank you for your contribution. We are trying deliver all code cleanups to the latest release line only. For the 2.2 release, it is preferred to deliver only functional improvements and/or bug fixes.

https://devdocs.magento.com/guides/v2.2/contributor-guide/contributing.html#rules

@eduard13
Copy link
Contributor Author

eduard13 commented Oct 19, 2018

Hi @okorshenko,
why is this Unit Test a code cleanup? As I can see in the Accepted pull requests and ported code table, the Tests Coverage are also accepted in 2.2. Please correct me if I'm wrong here.
Thank you.

@okorshenko
Copy link
Contributor

Hi @eduard13
This test already exists in 2.2-develop branch. So if you compare your changes and existing test, you will see that your PR just added few blank lines :)

Please see https://github.com/magento/magento2/pull/18559/files

@eduard13 eduard13 deleted the 2.2-develop-assign-order-to-customer-ut branch November 7, 2018 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Sales Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants