diff --git a/.travis.yml b/.travis.yml index 0c7aa31..535c02c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,8 @@ php: - 5.6 - 7.0 - 7.1 - + - 7.2 + addons: code_climate: repo_token: 653d80c9cb760f12e0ea14fc523f37cc07d95e69559913242810859ac65c1feb diff --git a/tests/TotalsTest.php b/tests/TotalsTest.php index 8cdd9ef..64b7bbb 100644 --- a/tests/TotalsTest.php +++ b/tests/TotalsTest.php @@ -241,6 +241,11 @@ public function testTaxTotalWithDiscounts() ]); $this->laracart->addCoupon($coupon); + + $this->assertEquals(100, $this->laracart->subTotal(false)); + $this->assertEquals(5, $this->laracart->totalDiscount(false)); + $this->assertEquals(19.95, $this->laracart->taxTotal(false)); + $this->assertEquals(114.95, $this->laracart->total(false)); } public function testDoubleDiscounts()