#[Package('checkout')]
class ProductLineItemProviderTest extends TestCase
{ use LineItemTestFixtureBehaviour;
private AbstractProductLineItemProvider
$provider;
protected function setUp(): void
{ $this->provider =
new ProductLineItemProvider();
} public function testIsMatchingReturnProductLineItem(): void
{ $cart =
$this->
getCart();
static::
assertEquals(4,
$cart->
getLineItems()->
count());
$lineItems =
$this->provider->
getProducts($cart);
static::
assertEquals(1,
$lineItems->
count());