Fix phpunit tests

This commit is contained in:
Pedro Silva 2023-06-30 10:58:21 +01:00
parent 7b04290eac
commit b9aed09f0f
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

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