Merge pull request #2062 from woocommerce/PCP-2143-reauthorize-authorized-payments

reauthorize authorized payments (2143)
This commit is contained in:
Emili Castells 2024-03-11 17:24:06 +01:00 committed by GitHub
commit 0ce740ba62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 354 additions and 9 deletions

View file

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