Fix tests

This commit is contained in:
Pedro Silva 2024-02-27 18:51:01 +00:00
parent 5469cdb3dd
commit 9968537f06
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

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