Skip to content

Commit ca34ef7

Browse files
author
Serhii Balko
committed
MC-38625: Storefront Order History product count is doubled if has more than 10 configurables
1 parent 5924f9f commit ca34ef7

File tree

1 file changed

+13
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Block/Order

1 file changed

+13
-0
lines changed

dev/tests/integration/testsuite/Magento/Sales/Block/Order/ItemsTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ public function testGetOrderItems(): void
8181
$this->assertCount(1, $this->block->getItems());
8282
}
8383

84+
/**
85+
* @magentoDataFixture Magento/Sales/_files/order_configurable_product.php
86+
*
87+
* @return void
88+
*/
89+
public function testGetOrderItemsConfigurable(): void
90+
{
91+
$order = $this->orderFactory->create()->loadByIncrementId('100000001');
92+
$this->registerOrder($order);
93+
$this->block = $this->layout->createBlock(Items::class);
94+
$this->assertCount(1, $this->block->getItems());
95+
}
96+
8497
/**
8598
* @magentoConfigFixture default/sales/orders/items_per_page 3
8699
* @magentoDataFixture Magento/Sales/_files/order_item_list.php

0 commit comments

Comments
 (0)