mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Refactor/rename the reference transaction enabled checking class.
This commit is contained in:
parent
40a95202ec
commit
0a0d7e9c49
10 changed files with 26 additions and 26 deletions
|
@ -8,7 +8,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint;
|
|||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentTokensEndpoint;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Entity\PaymentSource;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Entity\Token;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Helper\BillingAgreementsEndpoint;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Helper\ReferenceTransactionStatus;
|
||||
use WooCommerce\PayPalCommerce\Onboarding\State;
|
||||
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
||||
use WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway;
|
||||
|
@ -97,7 +97,7 @@ class VaultingSubscriptionsTest extends IntegrationMockedTestCase
|
|||
add_filter('user_has_cap', $user_has_cap_callback, 10, 3);
|
||||
|
||||
// Convert to Mockery mocks
|
||||
$billing_agreements_endpoint_mock = \Mockery::mock(BillingAgreementsEndpoint::class);
|
||||
$billing_agreements_endpoint_mock = \Mockery::mock(ReferenceTransactionStatus::class);
|
||||
$billing_agreements_endpoint_mock->shouldReceive('reference_transaction_enabled')
|
||||
->andReturn(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue