From 1ec7fd5c50a8f7a3eb7acf62b75c176b9dfcd041 Mon Sep 17 00:00:00 2001 From: Steve Tentrop Date: Mon, 9 Sep 2024 10:19:27 +0200 Subject: [PATCH] add more mock functions --- tests/Unit/Services/CheckoutServiceShippingTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Unit/Services/CheckoutServiceShippingTest.php b/tests/Unit/Services/CheckoutServiceShippingTest.php index a01019f37..a8bb5ea2d 100644 --- a/tests/Unit/Services/CheckoutServiceShippingTest.php +++ b/tests/Unit/Services/CheckoutServiceShippingTest.php @@ -257,6 +257,9 @@ public function it_gets_the_right_shipping_profiles($shippingList) $this->currencyExchangeRepoMock->shouldReceive('getDefaultCurrency')->andReturn('EUR'); + + $this->currencyExchangeRepoMock->shouldReceive('getExchangeRatioByCurrency'); + $shippingProfileList = $this->checkoutService->getShippingProfileList();