Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Apr 24, 2020
1 parent b0993bd commit 648ec20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests-legacy/Integration/classes/CartGetOrderTotalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ public function testBasicRoundTypeLine()
$cart->updateQty(1, $product_a->id);
$cart->updateQty(1, $product_b->id);

$this->assertEquals(3.581, $cart->getOrderTotal(false, Cart::ONLY_PRODUCTS));
$this->assertEquals(4.2972, $cart->getOrderTotal(true, Cart::ONLY_PRODUCTS));
$this->assertEquals(3.59, $cart->getOrderTotal(false, Cart::ONLY_PRODUCTS));
$this->assertEquals(4.29, $cart->getOrderTotal(true, Cart::ONLY_PRODUCTS));
}

public function testBasicRoundTypeTotal()
Expand All @@ -469,8 +469,8 @@ public function testBasicRoundTypeTotal()
$cart->updateQty(1, $product_a->id);
$cart->updateQty(1, $product_b->id);

$this->assertEquals(3.581, $cart->getOrderTotal(false, Cart::ONLY_PRODUCTS));
$this->assertEquals(4.2972, $cart->getOrderTotal(true, Cart::ONLY_PRODUCTS));
$this->assertEquals(3.58, $cart->getOrderTotal(false, Cart::ONLY_PRODUCTS));
$this->assertEquals(4.3, $cart->getOrderTotal(true, Cart::ONLY_PRODUCTS));
}

public function testBasicCartRuleAmountBeforeTax()
Expand Down

0 comments on commit 648ec20

Please sign in to comment.