woocommerce-paypal-payments/tests/stubs
Lae 81d2d5d8ad
Test: cover PUI no-cart guard in requires_phone
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>
2026-07-01 14:54:03 +02:00
..
AbilityDefinition.php [RSM-108] Add initial abilities for PayPal Payments for WooCommerce (6418) (#4374) 2026-06-01 19:10:35 -03:00
AbstractPaymentMethodType.php Add integration and unit tests 2026-05-27 11:39:16 +02:00
DefaultPaymentGateways.php Fix the tests 2025-06-27 12:56:12 +04:00
NoteTraits.php Refactor NoteTrait stub 2025-10-22 18:40:47 +02:00
ProductStatus.php test(AgenticCommerce): Add comprehensive test coverage for ingestion components 2025-11-03 16:43:39 +01:00
Task.php Add namespace and constructor to stub task class 2024-09-12 12:11:39 +02:00
WC_Ajax.php fix tests 2020-08-31 13:03:16 +03:00
WC_Cart.php Test: cover PUI no-cart guard in requires_phone 2026-07-01 14:54:03 +02:00
WC_Checkout.php Add tests 2023-02-07 15:30:59 +02:00
WC_Countries.php Fix failing tests for store-sync module 2026-03-26 17:22:01 +01:00
WC_Integration.php Fix phpunit coverage missing dependency 2025-11-20 17:24:22 +01:00
WC_Payment_Gateway.php Leave it as it was for now 2022-08-16 11:06:18 +02:00
WC_Payment_Gateway_CC.php Leave it as it was for now 2022-08-16 11:06:18 +02:00
WC_Product.php Fix failing tests for store-sync module 2026-03-26 17:22:01 +01:00
WC_REST_Controller.php 🧪 First test for CreateCartEndpoint 2025-10-22 18:40:50 +02:00
WC_Session.php Refactor stubs 2025-10-22 18:40:47 +02:00
WC_Session_Handler.php Refactor stubs 2025-10-22 18:40:47 +02:00
WC_Validation.php 🧪 Add failing tests with new expectations 2026-04-28 19:30:09 +02:00
WP_Error.php 🤡 Add WP_Error mock class 2025-10-22 18:47:37 +02:00
WP_REST_Controller.php Refactor stubs 2025-10-22 18:40:47 +02:00
WP_REST_Request.php 🧪 First test for CreateCartEndpoint 2025-10-22 18:40:50 +02:00
WP_REST_Response.php 🧪 First test for CreateCartEndpoint 2025-10-22 18:40:50 +02:00