diff --git a/tests/class-unittestsbootstrap.php b/tests/class-unittestsbootstrap.php index 4c4e97fd..388897a0 100644 --- a/tests/class-unittestsbootstrap.php +++ b/tests/class-unittestsbootstrap.php @@ -33,7 +33,7 @@ public function init() { // load WC tests_add_filter( 'muplugins_loaded', array( $this, 'load_plugins' ) ); - tests_add_filter( 'setup_theme', array( $this, 'install_wc' ) ); + tests_add_filter( 'init', array( $this, 'install_wc' ) ); tests_add_filter( 'option_active_plugins', [ $this, 'filter_active_plugins' ] ); // load the WP testing environment