mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2062 from woocommerce/PCP-2143-reauthorize-authorized-payments
reauthorize authorized payments (2143)
This commit is contained in:
commit
0ce740ba62
11 changed files with 354 additions and 9 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