Skip to content

Commit af6491d

Browse files
committed
ENGCOM-3559: Unit tests fix.
1 parent d6ebe4e commit af6491d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/code/Magento/Quote/Test/Unit/Model/Quote/Item/UpdaterTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function setUp()
6767
'addOption',
6868
'setCustomPrice',
6969
'setOriginalCustomPrice',
70-
'unsetData',
70+
'setData',
7171
'hasData',
7272
'setIsQtyDecimal'
7373
]);
@@ -353,7 +353,11 @@ public function testUpdateUnsetCustomPrice()
353353
->will($this->returnValue($buyRequestMock));
354354

355355
$this->itemMock->expects($this->exactly(2))
356-
->method('unsetData');
356+
->method('setData')
357+
->withConsecutive(
358+
['custom_price', null],
359+
['original_custom_price', null]
360+
);
357361

358362
$this->itemMock->expects($this->once())
359363
->method('hasData')

0 commit comments

Comments
 (0)