mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-20 22:35:14 +00:00
Fix
This commit is contained in:
@@ -1306,23 +1306,6 @@ class CartTest extends TestCase
|
||||
});
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_use_gross_price_as_base_price()
|
||||
{
|
||||
$cart = $this->getCartDiscount(0);
|
||||
config(['cart.calculator' => GrossPrice::class]);
|
||||
|
||||
$cartItem = $cart->add(new BuyableProduct([
|
||||
'name' => 'First item',
|
||||
'price' => 100,
|
||||
]), 2);
|
||||
|
||||
$cart->setGlobalTax(22);
|
||||
|
||||
// check net price
|
||||
$this->assertEquals(new Money(8197, new Currency('USD')), $cartItem->priceNet);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an instance of the cart.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user