mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Update CartItemTest.php
This commit is contained in:
@@ -57,13 +57,4 @@ class CartItemTest extends TestCase
|
|||||||
|
|
||||||
$this->assertEquals($json, $cartItem->toJson());
|
$this->assertEquals($json, $cartItem->toJson());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
|
||||||
public function it_formats_price_total_correctly()
|
|
||||||
{
|
|
||||||
$cartItem = new CartItem(1, 'Some item', new Money(10.00, new Currency('USD')), 550, ['size' => 'XL', 'color' => 'red']);
|
|
||||||
$cartItem->setQuantity(2);
|
|
||||||
|
|
||||||
$this->assertSame('20.00', $cartItem->priceTotal());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user