WordPoints / woocommerce

WordPoints module integrating with WooCommerce
2 stars 1 forks source link

[WooCommercec 3.3.0] "Undefined index: refunded_amount" error when running tests #40

Closed JDGrimes closed 6 years ago

JDGrimes commented 6 years ago
There were 2 errors:

1) WordPoints_WooCommerce_Hook_Event_Order_Complete_Test::test_fires with data set #0 (array('woocommerce_order', 'customer', 'user'), 'points')
Undefined index: refunded_amount

/Users/johngrimes/git/_forks/woocommerce/includes/class-wc-ajax.php:1606
/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/classes/hook/event/order/complete.php:114
/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/classes/hook/event/order/complete.php:57
/Users/johngrimes/git/_wordpoints-modules/woocommerce/dev-lib/phpunit/classes/testcase/hook/event.php:252

2) WordPoints_WooCommerce_Hook_Event_Order_Complete_Test::test_fires with data set #1 (array('woocommerce_order', 'customer', 'user'), 'points_legacy')
Undefined index: refunded_amount

/Users/johngrimes/git/_forks/woocommerce/includes/class-wc-ajax.php:1606
/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/classes/hook/event/order/complete.php:114
/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/classes/hook/event/order/complete.php:57
/Users/johngrimes/git/_wordpoints-modules/woocommerce/dev-lib/phpunit/classes/testcase/hook/event.php:252