Adjusted for global discount

Fixed tests for Laravel 5.7
This commit is contained in:
Patrick Henninger
2018-12-21 15:18:27 +01:00
parent 645d6f78ad
commit 48df3f5d74
4 changed files with 109 additions and 15 deletions

View File

@@ -37,6 +37,7 @@ class CartItemTest extends TestCase
],
'tax' => 0,
'subtotal' => 20.00,
'discount' => 0.0
], $cartItem->toArray());
}
@@ -48,7 +49,7 @@ class CartItemTest extends TestCase
$this->assertJson($cartItem->toJson());
$json = '{"rowId":"07d5da5550494c62daf9993cf954303f","id":1,"name":"Some item","qty":2,"price":10,"options":{"size":"XL","color":"red"},"tax":0,"subtotal":20}';
$json = '{"rowId":"07d5da5550494c62daf9993cf954303f","id":1,"name":"Some item","qty":2,"price":10,"options":{"size":"XL","color":"red"},"discount":0,"tax":0,"subtotal":20}';
$this->assertEquals($json, $cartItem->toJson());
}