From c89c1134870913c8cacfd3f5f91eeca2a229160b Mon Sep 17 00:00:00 2001 From: Timur Karimov Date: Mon, 13 Nov 2023 12:57:36 +0100 Subject: [PATCH] test attempt --- tests/unit/test-class-woopay-tracker.php | 1 + 1 file changed, 1 insertion(+) 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 );