Skip to content

Commit 1071acf

Browse files
committed
Fix bug 26449: Set null for configurable options of parent product whenever it's saved
- Update unit test
1 parent e7ff694 commit 1071acf

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/Model/ResourceModel

1 file changed

+1
-0
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/Model/ResourceModel/ProductTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function testBeforeSaveConfigurable()
6161

6262
$object->expects($this->once())->method('getTypeId')->will($this->returnValue(Configurable::TYPE_CODE));
6363
$object->expects($this->once())->method('getTypeInstance')->will($this->returnValue($type));
64+
$object->expects($this->once())->method('resetConfigurableOptionsData')->with($object);
6465

6566
$this->model->beforeSave(
6667
$subject,

0 commit comments

Comments
 (0)