mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +00:00
Fix
This commit is contained in:
@@ -1170,9 +1170,8 @@ class CartTest extends TestCase
|
|||||||
'weight' => 250,
|
'weight' => 250,
|
||||||
]), 2);
|
]), 2);
|
||||||
$cartItem = $cart->get('027c91341fd5cf4d2579b49c4b6a90da');
|
$cartItem = $cart->get('027c91341fd5cf4d2579b49c4b6a90da');
|
||||||
$cart->setDiscount('027c91341fd5cf4d2579b49c4b6a90da', 50);
|
$this->assertEquals(500, $cart->weight());
|
||||||
$this->assertEquals(500, $cart->weight);
|
$this->assertEquals(500, $cartItem->weightTotal);
|
||||||
$this->assertEquals(500.00, $cartItem->weightTotal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
|
|||||||
Reference in New Issue
Block a user