From cde948e9845d351b5119bb1f9ea4c3e275c81a86 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 20:57:53 +0100 Subject: [PATCH] Update CartTest.php --- tests/CartTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/CartTest.php b/tests/CartTest.php index 840cf5f..a61ca2c 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -1261,10 +1261,10 @@ class CartTest extends TestCase $cart->setGlobalTax(50); - $this->assertEquals(10.00, $cartItem->price(2)); - $this->assertEquals(5.00, $cart->subtotal(2)); //0.5 qty - $this->assertEquals(7.50, $cart->total(2)); // plus tax - $this->assertEquals(2.50, $cart->tax(2)); // tax of 5 Bucks + $this->assertEquals(new Money(10.00, new Currency('USD')), $cartItem->price); + $this->assertEquals(new Money(5.00, new Currency('USD')), $cart->subtotal()); //0.5 qty + $this->assertEquals(new Money(7.50, new Currency('USD')), $cart->total()); // plus tax + $this->assertEquals(new Money(2.50, new Currency('USD')), $cart->tax()); // tax of 5 Bucks } /** @test */