From d5875fcaac8bdf6d9e7ca263a67b57364be50566 Mon Sep 17 00:00:00 2001 From: frosso Date: Fri, 15 Nov 2024 15:01:29 +0100 Subject: [PATCH] WIP --- includes/class-wc-payments.php | 1 - tests/unit/bootstrap.php | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-payments.php b/includes/class-wc-payments.php index b86bffffc33..1e1e167aa84 100644 --- a/includes/class-wc-payments.php +++ b/includes/class-wc-payments.php @@ -442,7 +442,6 @@ public static function init() { include_once __DIR__ . '/express-checkout/class-wc-payments-express-checkout-ajax-handler.php'; include_once __DIR__ . '/express-checkout/class-wc-payments-express-checkout-button-display-handler.php'; include_once __DIR__ . '/express-checkout/class-wc-payments-express-checkout-button-handler.php'; - include_once __DIR__ . '/class-wc-payments-payment-request-button-handler.php'; include_once __DIR__ . '/class-wc-payments-woopay-button-handler.php'; include_once __DIR__ . '/class-wc-payments-woopay-direct-checkout.php'; include_once __DIR__ . '/class-wc-payments-apple-pay-registration.php'; diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php index 89ef79bfb11..99f99b071c2 100755 --- a/tests/unit/bootstrap.php +++ b/tests/unit/bootstrap.php @@ -96,6 +96,8 @@ function () { require_once $_plugin_dir . 'includes/admin/class-wc-rest-payments-customer-controller.php'; require_once $_plugin_dir . 'includes/admin/class-wc-rest-payments-refunds-controller.php'; + require_once $_plugin_dir . 'includes/class-wc-payments-payment-request-button-handler.php'; + // Load currency helper class early to ensure its implementation is used over the one resolved during further test initialization. require_once __DIR__ . '/helpers/class-wc-helper-site-currency.php';