Skip to content

Commit d175da2

Browse files
committed
ACP2E-2173: Scheduled update for a bundle product causes an exception for the bundle product already in a cart
1 parent 40977e0 commit d175da2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/SaveHandlerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testOptionLinksOfSameProduct(): void
109109
{
110110
/** @var OptionList $optionList */
111111
$optionList = $this->objectManager->create(OptionList::class);
112-
$product = $this->productRepository->get('bundle-product', true);
112+
$product = $this->productRepository->get('bundle-product', true, 0, true);
113113

114114
//set the first option
115115
$options = $this->setBundleProductOptionData();
@@ -118,7 +118,7 @@ public function testOptionLinksOfSameProduct(): void
118118
$product->setExtensionAttributes($extension);
119119
$product->save();
120120

121-
$product = $this->productRepository->get('bundle-product', true);
121+
$product = $this->productRepository->get('bundle-product', true, 0, true);
122122
$options = $optionList->getItems($product);
123123
$this->assertCount(1, $options);
124124

@@ -138,7 +138,7 @@ public function testOptionLinksOfSameProduct(): void
138138
$product->setExtensionAttributes($extension);
139139
$product->save();
140140

141-
$product = $this->productRepository->get('bundle-product', true);
141+
$product = $this->productRepository->get('bundle-product', true, 0, true);
142142
$options = $optionList->getItems($product);
143143
$this->assertCount(1, $options);
144144
}

0 commit comments

Comments
 (0)