mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
Fix phpunit
This commit is contained in:
parent
cb749e78d0
commit
df38a3bb85
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException;
|
|||
use WooCommerce\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Factory\ShippingPreferenceFactory;
|
||||
use WooCommerce\PayPalCommerce\TestCase;
|
||||
use WooCommerce\PayPalCommerce\WcGateway\Gateway\TransactionUrlProvider;
|
||||
use function Brain\Monkey\Functions\when;
|
||||
|
||||
class OXXOGatewayTest extends TestCase
|
||||
|
@ -22,6 +23,7 @@ private $purchaseUnitFactory;
|
|||
private $shippingPreferenceFactory;
|
||||
private $logger;
|
||||
private $wcOrder;
|
||||
private $transactionUrlProvider;
|
||||
private $testee;
|
||||
|
||||
public function setUp(): void
|
||||
|
@ -31,6 +33,7 @@ private $testee;
|
|||
$this->orderEndpoint = Mockery::mock(OrderEndpoint::class);
|
||||
$this->purchaseUnitFactory = Mockery::mock(PurchaseUnitFactory::class);
|
||||
$this->shippingPreferenceFactory = Mockery::mock(ShippingPreferenceFactory::class);
|
||||
$this->transactionUrlProvider = Mockery::mock(TransactionUrlProvider::class);
|
||||
$this->logger = Mockery::mock(LoggerInterface::class);
|
||||
|
||||
$this->wcOrder = Mockery::mock(WC_Order::class);
|
||||
|
@ -45,6 +48,7 @@ private $testee;
|
|||
$this->purchaseUnitFactory,
|
||||
$this->shippingPreferenceFactory,
|
||||
'oxxo.svg',
|
||||
$this->transactionUrlProvider,
|
||||
$this->logger
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue