From b9aed09f0f545ed571a42d49a548213c18cd9995 Mon Sep 17 00:00:00 2001
From: Pedro Silva
Date: Fri, 30 Jun 2023 10:58:21 +0100
Subject: [PATCH] Fix phpunit tests
---
tests/PHPUnit/Button/Endpoint/ChangeCartEndpointTest.php | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/PHPUnit/Button/Endpoint/ChangeCartEndpointTest.php b/tests/PHPUnit/Button/Endpoint/ChangeCartEndpointTest.php
index 9eb6c654b..1949e62b3 100644
--- a/tests/PHPUnit/Button/Endpoint/ChangeCartEndpointTest.php
+++ b/tests/PHPUnit/Button/Endpoint/ChangeCartEndpointTest.php
@@ -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')