woocommerce/tests/unit-tests/order
vedanshujain 6f2d64dcb4 Check for max discount to be -ve to prevent overwriting fee.
When we refund fee and some other line item whose value is more than fee in a single requst, value of line item will overwrite refund fee.

This is because where we check to make sure that we do not discount more than total possible value (to prevent negative total), we do not account for the fact that sometimes the cart could contain refund items. In those cases max_discount * -1 will always be larges then fees total.

This commit adds a check to make sure that max discount * -1 is indeed negative before overwriting fee total.
2019-09-03 20:45:33 +05:30
..
class-wc-tests-crud-orders.php Manual orders coupon usage limits by email (#23775) 2019-05-27 11:45:29 -03:00
class-wc-tests-order-functions.php Check for max discount to be -ve to prevent overwriting fee. 2019-09-03 20:45:33 +05:30
coupons.php Fix PHPCS errors 2019-07-19 10:19:23 -03:00
query.php Fix PHPCS violations in tests/ using PHPCBF 2019-05-01 19:05:00 -03:00