@@ -394,6 +394,7 @@ public function testGetQtyIncrements($config, $expected)
394394 $ this ->setDataArrayValue ('qty_increments ' , $ config ['qty_increments ' ]);
395395 $ this ->setDataArrayValue ('enable_qty_increments ' , $ config ['enable_qty_increments ' ]);
396396 $ this ->setDataArrayValue ('use_config_qty_increments ' , $ config ['use_config_qty_increments ' ]);
397+ $ this ->setDataArrayValue ('is_qty_decimal ' , $ config ['is_qty_decimal ' ]);
397398 if ($ config ['use_config_qty_increments ' ]) {
398399 $ this ->stockConfiguration ->expects ($ this ->once ())
399400 ->method ('getQtyIncrements ' )
@@ -415,23 +416,44 @@ public function getQtyIncrementsDataProvider()
415416 [
416417 'qty_increments ' => 1 ,
417418 'enable_qty_increments ' => true ,
418- 'use_config_qty_increments ' => true
419+ 'use_config_qty_increments ' => true ,
420+ 'is_qty_decimal ' => false ,
421+ ],
422+ 1
423+ ],
424+ [
425+ [
426+ 'qty_increments ' => 1.5 ,
427+ 'enable_qty_increments ' => true ,
428+ 'use_config_qty_increments ' => true ,
429+ 'is_qty_decimal ' => true ,
430+ ],
431+ 1.5
432+ ],
433+ [
434+ [
435+ 'qty_increments ' => 1.5 ,
436+ 'enable_qty_increments ' => true ,
437+ 'use_config_qty_increments ' => true ,
438+ 'is_qty_decimal ' => false ,
419439 ],
420440 1
421441 ],
422442 [
423443 [
424444 'qty_increments ' => -2 ,
425445 'enable_qty_increments ' => true ,
426- 'use_config_qty_increments ' => true
446+ 'use_config_qty_increments ' => true ,
447+ 'is_qty_decimal ' => false ,
427448 ],
428449 false
429450 ],
430451 [
431452 [
432453 'qty_increments ' => 3 ,
433454 'enable_qty_increments ' => true ,
434- 'use_config_qty_increments ' => false
455+ 'use_config_qty_increments ' => false ,
456+ 'is_qty_decimal ' => false ,
435457 ],
436458 3
437459 ],
0 commit comments