Refactor/rename the reference transaction enabled checking class.

This commit is contained in:
Narek Zakarian 2025-06-30 16:08:36 +04:00
parent 40a95202ec
commit 0a0d7e9c49
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
10 changed files with 26 additions and 26 deletions

View file

@ -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);