Skip to content

Commit f2c831b

Browse files
committed
MC-34456: Related Products can not be added to the Shopping Cart from a Wish List
1 parent c8c5565 commit f2c831b

File tree

1 file changed

+3
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Wishlist/Controller/Index

1 file changed

+3
-1
lines changed

dev/tests/integration/testsuite/Magento/Wishlist/Controller/Index/CartTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ public function testAddItemWithRelatedProducts(): void
139139
$cart = $this->cartFactory->create();
140140
$this->assertEquals(3, $cart->getItemsCount());
141141
$expectedAddedIds[] = $item->getProductId();
142-
$this->assertEquals($expectedAddedIds, $cart->getProductIds());
142+
foreach ($expectedAddedIds as $addedId) {
143+
$this->assertContains($addedId, $cart->getProductIds());
144+
}
143145
}
144146

145147
/**

0 commit comments

Comments
 (0)