Closed mralaminahamed closed 3 months ago
The changes introduced enhancements to the DokanTestCase
and OrderFactory
classes within the tests directory. New methods for handling HTTP DELETE and PUT requests were added to DokanTestCase
, improving REST API interaction capabilities. In OrderFactory
, a seller ID property was incorporated, along with methods to manage seller-specific order creation, alongside several documentation improvements and method signature updates for better type clarity.
Files | Change Summary |
---|---|
tests/php/src/DokanTestCase.php |
Added delete_request and put_request methods for HTTP REST API interactions. |
tests/php/src/Factories/OrderFactory.php |
Introduced $seller_id property and set_seller_id method; modified create_object for metadata handling; enhanced get_default_line_items for seller-specific products; added get_object_by_id method; updated docblocks for clarity. |
In the code so bright and new,
A rabbit hops with joy, it's true!
With methods fresh and IDs to share,
Our orders sing a seller's flair.
HTTP calls, oh what delight,
Testing's now a breezy flight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All Submissions:
Changes proposed in this Pull Request:
Related Pull Request(s)
Closes
How to test the changes in this Pull Request:
Changelog entry
Title
Detailed Description of the pull request. What was previous behaviour and what will be changed in this PR.
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY:
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
OrderFactory
class.