Fix phpunit

This commit is contained in:
Emili Castells Guasch 2023-08-18 16:36:32 +02:00
parent 1cddb3d132
commit 3d5a44ba7d
2 changed files with 4 additions and 0 deletions

View file

@ -115,6 +115,9 @@ class RenewalHandlerTest extends TestCase
->shouldReceive('payment_source')
->andReturn(null);
$wcOrder
->shouldReceive('get_meta')
->andReturn('');
$wcOrder
->shouldReceive('get_id')
->andReturn(1);

View file

@ -38,6 +38,7 @@ class TestCase extends \PHPUnit\Framework\TestCase
when('wc_clean')->returnArg();
when('get_transient')->returnArg();
when('delete_transient')->returnArg();
when('wcs_get_subscription')->returnArg();
setUp();
}