mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Fix phpunit tests
This commit is contained in:
parent
7b04290eac
commit
b9aed09f0f
1 changed files with 8 additions and 0 deletions
|
@ -88,6 +88,10 @@ class ChangeCartEndpointTest extends TestCase
|
||||||
$defaultProduct
|
$defaultProduct
|
||||||
->shouldReceive('get_id')
|
->shouldReceive('get_id')
|
||||||
->andReturn(1);
|
->andReturn(1);
|
||||||
|
$defaultProduct
|
||||||
|
->shouldReceive('is_type')
|
||||||
|
->with('booking')
|
||||||
|
->andReturn(false);
|
||||||
$defaultProduct
|
$defaultProduct
|
||||||
->shouldReceive('is_type')
|
->shouldReceive('is_type')
|
||||||
->with('variable')
|
->with('variable')
|
||||||
|
@ -97,6 +101,10 @@ class ChangeCartEndpointTest extends TestCase
|
||||||
$variationProduct
|
$variationProduct
|
||||||
->shouldReceive('get_id')
|
->shouldReceive('get_id')
|
||||||
->andReturn(2);
|
->andReturn(2);
|
||||||
|
$variationProduct
|
||||||
|
->shouldReceive('is_type')
|
||||||
|
->with('booking')
|
||||||
|
->andReturn(false);
|
||||||
$variationProduct
|
$variationProduct
|
||||||
->shouldReceive('is_type')
|
->shouldReceive('is_type')
|
||||||
->with('variable')
|
->with('variable')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue