From 68d4185791470a46204e9a2ce45523327b82f36b Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 21:54:52 +0100 Subject: [PATCH] Update CartItemTest.php --- tests/CartItemTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CartItemTest.php b/tests/CartItemTest.php index 1a10bc5..7c24ea9 100644 --- a/tests/CartItemTest.php +++ b/tests/CartItemTest.php @@ -41,7 +41,7 @@ class CartItemTest extends TestCase 'tax' => 0, 'subtotal' => 20.00, 'discount' => 0.0, - 'weight' => 550.0, + 'weight' => 550, ], $cartItem->toArray()); } @@ -52,7 +52,7 @@ class CartItemTest extends TestCase $this->assertJson($cartItem->toJson()); - $json = '{"rowId":"07d5da5550494c62daf9993cf954303f","id":1,"name":"Some item","qty":2,"price":10,"weight":550,"options":{"size":"XL","color":"red"},"discount":0,"tax":0,"subtotal":20}'; + $json = '{"rowId":"07d5da5550494c62daf9993cf954303f","id":1,"name":"Some item","qty":2,"price":10.00,"weight":550,"options":{"size":"XL","color":"red"},"discount":0,"tax":0,"subtotal":20}'; $this->assertEquals($json, $cartItem->toJson()); }