Skip to content

Commit

Permalink
Merge pull request #218 from it-can/master
Browse files Browse the repository at this point in the history
add 7.2 travis + fixed empty test
  • Loading branch information
lukepolo authored Nov 21, 2017
2 parents 9d045cf + 4153ee0 commit b663f0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ php:
- 5.6
- 7.0
- 7.1

- 7.2

addons:
code_climate:
repo_token: 653d80c9cb760f12e0ea14fc523f37cc07d95e69559913242810859ac65c1feb
Expand Down
5 changes: 5 additions & 0 deletions tests/TotalsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b663f0b

Please sign in to comment.