mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix phpunit
This commit is contained in:
parent
831275b8fc
commit
9d6fc84c03
1 changed files with 8 additions and 0 deletions
|
@ -8,11 +8,13 @@ use Psr\Log\LoggerInterface;
|
|||
use WC_Order;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentsEndpoint;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentTokensEndpoint;
|
||||
use WooCommerce\PayPalCommerce\Onboarding\Environment;
|
||||
use WooCommerce\PayPalCommerce\Onboarding\State;
|
||||
use WooCommerce\PayPalCommerce\Session\SessionHandler;
|
||||
use WooCommerce\PayPalCommerce\TestCase;
|
||||
use WooCommerce\PayPalCommerce\Vaulting\VaultedCreditCardHandler;
|
||||
use WooCommerce\PayPalCommerce\Vaulting\WooCommercePaymentTokens;
|
||||
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
||||
use WooCommerce\PayPalCommerce\WcGateway\Endpoint\CaptureCardPayment;
|
||||
use WooCommerce\PayPalCommerce\WcGateway\Processor\OrderProcessor;
|
||||
|
@ -34,6 +36,8 @@ class CreditCardGatewayTest extends TestCase
|
|||
private $subscriptionHelper;
|
||||
private $captureCardPayment;
|
||||
private $prefix;
|
||||
private $paymentTokensEndpoint;
|
||||
private $wcPaymentTokens;
|
||||
private $logger;
|
||||
private $paymentsEndpoint;
|
||||
private $vaultedCreditCardHandler;
|
||||
|
@ -56,6 +60,8 @@ class CreditCardGatewayTest extends TestCase
|
|||
$this->subscriptionHelper = Mockery::mock(SubscriptionHelper::class);
|
||||
$this->captureCardPayment = Mockery::mock(CaptureCardPayment::class);
|
||||
$this->prefix = 'some-prefix';
|
||||
$this->paymentTokensEndpoint = Mockery::mock(PaymentTokensEndpoint::class);
|
||||
$this->wcPaymentTokens = Mockery::mock(WooCommercePaymentTokens::class);
|
||||
$this->logger = Mockery::mock(LoggerInterface::class);
|
||||
$this->paymentsEndpoint = Mockery::mock(PaymentsEndpoint::class);
|
||||
$this->vaultedCreditCardHandler = Mockery::mock(VaultedCreditCardHandler::class);
|
||||
|
@ -84,6 +90,8 @@ class CreditCardGatewayTest extends TestCase
|
|||
$this->orderEndpoint,
|
||||
$this->captureCardPayment,
|
||||
$this->prefix,
|
||||
$this->paymentTokensEndpoint,
|
||||
$this->wcPaymentTokens,
|
||||
$this->logger
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue