mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-29 02:07:27 +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>
8 lines
98 B
PHP
8 lines
98 B
PHP
<?php
|
|
declare( strict_types=1 );
|
|
|
|
class WC_Cart {
|
|
public function get_cart() {
|
|
return [];
|
|
}
|
|
}
|