Fix Downloadable product after refund - #28413
Conversation
|
Hi @ProkopovVitaliy. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
|
@magento run all tests |
|
@magento run all tests |
VladimirZaets
left a comment
There was a problem hiding this comment.
Hi @ProkopovVitaliy. Thanks for collaboration. Can you please fix failed tests? Also, can you please cover this functionality by functional or integration tests?
|
@magento run all tests |
|
@magento run Functional Tests EE |
|
Working with MFTF test. |
|
@magento run all tests |
|
@magento run Unit Tests |
|
@magento run Functional Tests B2B |
|
@magento run Functional Tests CE |
|
@magento run Functional Tests B2B |
|
@magento run all tests |
| ); | ||
|
|
||
| $this->itemsFactory->expects($this->once()) | ||
| $this->itemsFactory->expects($this->any()) |
There was a problem hiding this comment.
It's better to use atLeastOnce instead.
| ->setMethods(['addFieldToFilter']) | ||
| ->getMock(); | ||
| $linkItemCollection->expects($this->once()) | ||
| $linkItemCollection->expects($this->any()) |
There was a problem hiding this comment.
It's better to use atLeastOnce instead.
|
Hi @sidolov, thank you for the review. |
|
✔️ QA Passed Preconditions:
Manual testing scenario:
Before: ✖️ After a refund, the Downloadable product still can be downloaded. After: ✔️ The Downloadable product cannot be downloaded. Also tested with different stores, combinations with different types of products |
|
Hi @ProkopovVitaliy, thank you for your contribution! |
Accepted Community Pull Requests: - magento#29799: Add elasticsearch params to integration tests config (by @ihor-sviziev) - magento#29634: [MFTF] Added some ActionGroups to Analytics module (by @Usik2203) - magento#29348: [MFTF] Test scenario for "Apply shopping cart rule to a single bundle item" (magento#28921) (by @zhartaunik) - magento#28413: Fix Downloadable product after refund (by @ProkopovVitaliy) - magento#27609: Test coverage for PR magento#27357 (E-mail templates) (by @lbajsarowicz) - magento#27579: Fix magento#27523: throw informative errors in setup:db:generate-patch (by @korostii) Fixed GitHub Issues: - magento#29648: [Issue] [MFTF] Added some ActionGroups to Analytics module (reported by @m2-assistant[bot]) has been fixed in magento#29634 by @Usik2203 in 2.4-develop branch Related commits: 1. f54fd86 2. 1492668 3. 59d5d32 4. 8c2291f 5. e25fc55 - magento#28921: Apply shopping cart rule to a single bundle item (reported by @MilanFrajt) has been fixed in magento#29348 by @zhartaunik in 2.4-develop branch Related commits: 1. e6aca3b 2. 7abc82f - magento#28388: Downloadable product is available in My Download Products tab after it has been partially refunded (reported by @YaninaPrudnikova) has been fixed in magento#28413 by @ProkopovVitaliy in 2.4-develop branch Related commits: 1. a6f460d 2. 9a83830 3. 96c9d54 4. 59cf9f7 5. c6c3231 6. eafdb17 7. 92fd06b 8. 1f7eace 9. db84d3a 10. d0a0962 11. aea9276 12. 1be2cd7 13. dee9b16 14. a49709f 15. 8023f42 16. 9e31246 17. d91b305 18. 62e4866 19. 97df424 20. 2d58988 21. 87d8984 - magento#27523: CLI Patch Generator: Lack of information what path cannot be created (reported by @lbajsarowicz) has been fixed in magento#27579 by @korostii in 2.4-develop branch Related commits: 1. 1e8e825 2. 1dd5290 3. c1d8fef 4. a74f8fe 5. f48cd50 6. 2bc691a 7. 8991733 8. 347602f 9. 75bb2c3 10. 7d316d4



Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)