Fix tests

This commit is contained in:
Mike Jolley 2017-08-14 16:03:50 +01:00
parent 7ddfe0703b
commit be11c1089f
1 changed files with 1 additions and 0 deletions

View File

@ -1033,6 +1033,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
*/
protected function recalculate_coupons() {
$discounts = new WC_Discounts( $this );
$coupons = $this->get_items( 'coupon' );
foreach ( $coupons as $coupon ) {
$coupon_object = new WC_Coupon( $coupon->get_code() );