Skip to content

Commit 1d82b50

Browse files
cover by api
1 parent 34a6433 commit 1d82b50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/api-functional/testsuite/Magento/Bundle/Api/ProductServiceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public function testUpdateBundleAddSelection()
225225
public function testUpdateBundleAddAndDeleteOption()
226226
{
227227
$bundleProduct = $this->createDynamicBundleProduct();
228+
$linkedProductPrice = 20;
228229

229230
$bundleProductOptions = $this->getBundleProductOptions($bundleProduct);
230231

@@ -238,7 +239,7 @@ public function testUpdateBundleAddAndDeleteOption()
238239
[
239240
'sku' => 'simple2',
240241
'qty' => 2,
241-
"price" => 20,
242+
"price" => $linkedProductPrice,
242243
"price_type" => 1,
243244
"is_default" => false,
244245
],
@@ -256,6 +257,7 @@ public function testUpdateBundleAddAndDeleteOption()
256257
$this->assertFalse(isset($bundleOptions[1]));
257258
$this->assertEquals('simple2', $bundleOptions[0]['product_links'][0]['sku']);
258259
$this->assertEquals(2, $bundleOptions[0]['product_links'][0]['qty']);
260+
$this->assertEquals($linkedProductPrice, $bundleOptions[0]['product_links'][0]['price']);
259261
}
260262

261263
/**

0 commit comments

Comments
 (0)