woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3
Nestor Soriano 2b8cac7cf2 Fix the REST API entry point to add coupons to an order.
- Check input (no 'id', has 'code') and throw an error if needed
  before removing the existing coupons, so an invalid input
  won't cause the loss of these existing coupons.
- Also, check that the coupon is actually valid as part of the
  input check.
- Cache the coupon objects that are created during the input check,
  and apply them directly.
- Don't check if 'coupon_lines' is an array and contains arrays,
  that's already done by the REST API engine by looking at the schema.
- Adjust unit tests.
2021-03-24 15:19:34 +01:00
..
coupons.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
customers.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
orders.php Fix the REST API entry point to add coupons to an order. 2021-03-24 15:19:34 +01:00
payment-gateways.php Fixed unit tests 2020-08-25 16:13:49 -03:00
product-reviews.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
product-variations.php Fix existing tests. 2021-03-11 17:02:22 +01:00
products.php Fix existing tests. 2021-03-11 17:02:22 +01:00
reports-coupons-totals.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
reports-customers-totals.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
reports-orders-totals.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
reports-products-totals.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
reports-reviews-totals.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
settings.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
shipping-methods.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
shipping-zones.php Make api included structure more linear. 2020-08-06 14:34:02 +05:30
system-status.php Skip test for < 5.3 as feature is not supported. 2020-08-06 14:34:02 +05:30