Ensure coupons are enabled for testing.

This commit is contained in:
Jeff Stieler 2019-06-24 10:43:58 -06:00
parent 7e14630b3b
commit 4711a4e11d
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ function wc_test_includes() {
function _manually_load_plugin() { function _manually_load_plugin() {
define( 'WC_TAX_ROUNDING_MODE', 'auto' ); define( 'WC_TAX_ROUNDING_MODE', 'auto' );
define( 'WC_USE_TRANSACTIONS', false ); define( 'WC_USE_TRANSACTIONS', false );
update_option( 'woocommerce_enable_coupons', 'yes' );
require_once wc_dir() . '/woocommerce.php'; require_once wc_dir() . '/woocommerce.php';
wc_admin_install(); wc_admin_install();