@@ -105,12 +105,13 @@ protected function setUp()
105
105
);
106
106
$ this ->selection = $ this ->createPartialMock (
107
107
\Magento \Catalog \Model \Product::class,
108
- ['getSku ' , 'getSelectionPriceValue ' , 'getIsDefault ' , 'getSelectionQty ' , 'getSelectionPriceType ' ]
108
+ ['getSku ' , 'getSelectionPriceValue ' , 'getIsDefault ' , 'getSelectionQty ' , 'getSelectionPriceType ' , ' getSelectionCanChangeQty ' ]
109
109
);
110
110
$ this ->selection ->expects ($ this ->any ())->method ('getSku ' )->willReturn (1 );
111
111
$ this ->selection ->expects ($ this ->any ())->method ('getSelectionPriceValue ' )->willReturn (1 );
112
112
$ this ->selection ->expects ($ this ->any ())->method ('getSelectionQty ' )->willReturn (1 );
113
113
$ this ->selection ->expects ($ this ->any ())->method ('getSelectionPriceType ' )->willReturn (1 );
114
+ $ this ->selection ->expects ($ this ->any ())->method ('getSelectionCanChangeQty ' )->willReturn (1 );
114
115
$ this ->selectionsCollection = $ this ->createPartialMock (
115
116
\Magento \Bundle \Model \ResourceModel \Selection \Collection::class,
116
117
['getIterator ' , 'addAttributeToSort ' ]
@@ -176,7 +177,7 @@ public function testAddData()
176
177
'bundle_sku_type ' => 'fixed ' ,
177
178
'bundle_price_view ' => 'As low as ' ,
178
179
'bundle_weight_type ' => 'fixed ' ,
179
- 'bundle_values ' => 'name=title,type=1,required=1,sku=1,price=1,default=,default_qty=1,price_type=percent '
180
+ 'bundle_values ' => 'name=title,type=1,required=1,sku=1,price=1,default=,default_qty=1,price_type=percent,can_change_qty=1 '
180
181
];
181
182
$ this ->assertEquals ($ expected , $ preparedRow );
182
183
}
0 commit comments