Ensure coupons are enabled for testing.
This commit is contained in:
parent
7e14630b3b
commit
4711a4e11d
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue