mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix tests
This commit is contained in:
parent
5469cdb3dd
commit
9968537f06
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,7 @@ namespace WooCommerce\PayPalCommerce\WcGateway\Processor;
|
|||
|
||||
|
||||
use Mockery\MockInterface;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Factory\AmountFactory;
|
||||
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
||||
use Psr\Log\NullLogger;
|
||||
use WC_Order;
|
||||
|
@ -69,6 +70,7 @@ class AuthorizedPaymentsProcessorTest extends TestCase
|
|||
|
||||
$this->config = Mockery::mock(ContainerInterface::class);
|
||||
$this->subscription_helper = Mockery::mock(SubscriptionHelper::class);
|
||||
$this->amount_factory = Mockery::mock(AmountFactory::class);
|
||||
|
||||
$this->testee = new AuthorizedPaymentsProcessor(
|
||||
$this->orderEndpoint,
|
||||
|
@ -76,7 +78,8 @@ class AuthorizedPaymentsProcessorTest extends TestCase
|
|||
new NullLogger(),
|
||||
$this->notice,
|
||||
$this->config,
|
||||
$this->subscription_helper
|
||||
$this->subscription_helper,
|
||||
$this->amount_factory
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue