mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Fix renewal logging
This commit is contained in:
parent
21aa8980d6
commit
d42cb3e47c
2 changed files with 16 additions and 72 deletions
|
@ -37,6 +37,9 @@ class RenewalHandlerTest extends TestCase
|
|||
$this->purchaseUnitFactory = Mockery::mock(PurchaseUnitFactory::class);
|
||||
$this->payerFactory = Mockery::mock(PayerFactory::class);
|
||||
|
||||
$this->logger->shouldReceive('error');
|
||||
$this->logger->shouldReceive('info');
|
||||
|
||||
$this->sut = new RenewalHandler(
|
||||
$this->logger,
|
||||
$this->repository,
|
||||
|
@ -59,7 +62,6 @@ class RenewalHandlerTest extends TestCase
|
|||
$payer = Mockery::mock(Payer::class);
|
||||
$order = Mockery::mock(Order::class);
|
||||
|
||||
$this->logger->shouldReceive('log');
|
||||
$wcOrder
|
||||
->shouldReceive('get_id')
|
||||
->andReturn(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue