diff --git a/tests/PHPUnit/WcGateway/Processor/AuthorizedPaymentsProcessorTest.php b/tests/PHPUnit/WcGateway/Processor/AuthorizedPaymentsProcessorTest.php index 5dd7c588f..9f9aa8c3c 100644 --- a/tests/PHPUnit/WcGateway/Processor/AuthorizedPaymentsProcessorTest.php +++ b/tests/PHPUnit/WcGateway/Processor/AuthorizedPaymentsProcessorTest.php @@ -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 ); }