mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-28 01:57:35 +08:00
Adds a WC_Cart test stub (wired into the PHPUnit bootstrap) and a case asserting requires_phone() does not call get_checkout_fields() when there is no cart context, falling back to the default phone requirement instead. Updates the existing get_payment_method_data() cases to provide a cart mock so they continue to exercise the checkout-fields path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AbilityDefinition.php | ||
| AbstractPaymentMethodType.php | ||
| DefaultPaymentGateways.php | ||
| NoteTraits.php | ||
| ProductStatus.php | ||
| Task.php | ||
| WC_Ajax.php | ||
| WC_Cart.php | ||
| WC_Checkout.php | ||
| WC_Countries.php | ||
| WC_Integration.php | ||
| WC_Payment_Gateway.php | ||
| WC_Payment_Gateway_CC.php | ||
| WC_Product.php | ||
| WC_REST_Controller.php | ||
| WC_Session.php | ||
| WC_Session_Handler.php | ||
| WC_Validation.php | ||
| WP_Error.php | ||
| WP_REST_Controller.php | ||
| WP_REST_Request.php | ||
| WP_REST_Response.php | ||