Skip to content

Commit

Permalink
Merge pull request #335 from woocommerce/fix/334-php-unittests-notice
Browse files Browse the repository at this point in the history
Update test environment setup to resolve notice
  • Loading branch information
martynmjones authored Nov 28, 2023
2 parents 6a5812b + a468648 commit 62f9c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/class-unittestsbootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62f9c5f

Please sign in to comment.