mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Update CartItemTest.php
This commit is contained in:
@@ -52,7 +52,7 @@ class CartItemTest extends TestCase
|
|||||||
|
|
||||||
$this->assertJson($cartItem->toJson());
|
$this->assertJson($cartItem->toJson());
|
||||||
|
|
||||||
$json = '{"rowId":"07d5da5550494c62daf9993cf954303f","id":1,"name":"Some item","qty":2,"price":10.00,"weight":550,"options":{"size":"XL","color":"red"},"discount":"0.00","tax":"10.00","subtotal":"20.00"}';
|
$json = '{"rowId":"07d5da5550494c62daf9993cf954303f","id":1,"name":"Some item","qty":2,"price":"10.00","weight":550,"options":{"size":"XL","color":"red"},"discount":"0.00","tax":"10.00","subtotal":"20.00"}';
|
||||||
|
|
||||||
$this->assertEquals($json, $cartItem->toJson());
|
$this->assertEquals($json, $cartItem->toJson());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user