mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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
|
||||
->shouldReceive('get_id')
|
||||
->andReturn(1);
|
||||
$defaultProduct
|
||||
->shouldReceive('is_type')
|
||||
->with('booking')
|
||||
->andReturn(false);
|
||||
$defaultProduct
|
||||
->shouldReceive('is_type')
|
||||
->with('variable')
|
||||
|
@ -97,6 +101,10 @@ class ChangeCartEndpointTest extends TestCase
|
|||
$variationProduct
|
||||
->shouldReceive('get_id')
|
||||
->andReturn(2);
|
||||
$variationProduct
|
||||
->shouldReceive('is_type')
|
||||
->with('booking')
|
||||
->andReturn(false);
|
||||
$variationProduct
|
||||
->shouldReceive('is_type')
|
||||
->with('variable')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue