diff --git a/tests/unit/test-class-woopay-tracker.php b/tests/unit/test-class-woopay-tracker.php index 408d9cb56f5..ac23b17f7f7 100644 --- a/tests/unit/test-class-woopay-tracker.php +++ b/tests/unit/test-class-woopay-tracker.php @@ -77,6 +77,7 @@ public function test_does_track_non_admins() { $this->set_is_woopay_eligible( true ); $this->set_account_connected( true ); WC_Payments::get_gateway()->update_option( 'platform_checkout', 'yes' ); + WC_Payments::get_gateway()->enable(); WC_Payments::set_account_service( $this->mock_account ); wp_set_current_user( 1 ); $this->set_is_admin( false );