Fix renewal logging

This commit is contained in:
Alex P 2022-01-04 17:30:26 +02:00
parent 21aa8980d6
commit d42cb3e47c
2 changed files with 16 additions and 72 deletions

View file

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