From 4711a4e11d19949e1e07c3e3294e85991a19b708 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Mon, 24 Jun 2019 10:43:58 -0600 Subject: [PATCH] Ensure coupons are enabled for testing. --- plugins/woocommerce-admin/tests/bootstrap.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/woocommerce-admin/tests/bootstrap.php b/plugins/woocommerce-admin/tests/bootstrap.php index 2b1a336126b..85ca7207945 100755 --- a/plugins/woocommerce-admin/tests/bootstrap.php +++ b/plugins/woocommerce-admin/tests/bootstrap.php @@ -89,6 +89,7 @@ function wc_test_includes() { function _manually_load_plugin() { define( 'WC_TAX_ROUNDING_MODE', 'auto' ); define( 'WC_USE_TRANSACTIONS', false ); + update_option( 'woocommerce_enable_coupons', 'yes' ); require_once wc_dir() . '/woocommerce.php'; wc_admin_install();