Update CartItemTest.php

This commit is contained in:
Patrick
2022-02-05 17:51:10 +01:00
committed by GitHub
parent fdc228832f
commit 22f7d62c36

View File

@@ -57,13 +57,4 @@ class CartItemTest extends TestCase
$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());
}
}