Skip to content

Commit f2bfade

Browse files
MC-23193: Tier Prices error on product update
1 parent fa41639 commit f2bfade

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Attribute/Backend/TierPrice/UpdateHandlerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public function testExecute(): void
108108
];
109109
$linkField = 'entity_id';
110110
$productId = 10;
111+
$originalProductId = 11;
111112

112113
/** @var \PHPUnit_Framework_MockObject_MockObject $product */
113114
$product = $this->getMockBuilder(\Magento\Catalog\Api\Data\ProductInterface::class)
@@ -124,7 +125,7 @@ public function testExecute(): void
124125
->willReturnMap(
125126
[
126127
['tier_price', $originalTierPrices],
127-
['entity_id', $productId]
128+
['entity_id', $originalProductId]
128129
]
129130
);
130131
$product->expects($this->atLeastOnce())->method('getStoreId')->willReturn(0);

0 commit comments

Comments
 (0)