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

Issue-25968 - Added additional checking for returning needed variable… #26313

Conversation

AndreyChorniy
Copy link
Contributor

Description (*)

This PR add fix for returned type for getPrice() method. Also added unit tests coverage for method getPrice.

Fixed Issues (if relevant)

  1. getPrice() returns a string when setting custom price in admin order #25968: getPrice() returns a string when setting custom price in admin order

Manual testing scenarios (*)

We have not easy steps to manual test these changes.
I can recommend use sandboxes to get test it more easily

@m2-assistant
Copy link

m2-assistant bot commented Jan 8, 2020

Hi @AndreyChorniy. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@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 labels Jan 8, 2020
Copy link
Contributor

@eduard13 eduard13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AndreyChorniy, thanks for your contribution, could you please check the comments that I left?

@rogyar rogyar self-assigned this Jan 8, 2020
@rogyar
Copy link
Contributor

rogyar commented Jan 8, 2020

Hi @AndreyChorniy. Please, take a look at the failing tests as well. Thank you

@lbajsarowicz
Copy link
Contributor

Covering all the use cases in single Test method is considered to be a bad practice.

You should introduce another Test method - for example testGetPriceReturnsNull()
`

Copy link
Contributor

@eduard13 eduard13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your fixes, could you please check the other minor recommendations?

@AndreyChorniy
Copy link
Contributor Author

Hi @AndreyChorniy. Please, take a look at the failing tests as well. Thank you

Hello @rogyar, I have fixed failed tests.

Copy link
Contributor

@eduard13 eduard13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me.
Thanks.

@rogyar rogyar added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Jan 17, 2020
@magento-engcom-team
Copy link
Contributor

Hi @rogyar, thank you for the review.
ENGCOM-6627 has been created to process this Pull Request

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@magento-engcom-team magento-engcom-team merged commit 71da244 into magento:2.4-develop Jan 28, 2020
@m2-assistant
Copy link

m2-assistant bot commented Jan 28, 2020

Hi @AndreyChorniy, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests 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.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants