Skip to content

Commit 162b099

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-49157: "shipment_type" attribute ignored for bundle product during product import
1 parent e261671 commit 162b099

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

app/code/Magento/BundleImportExport/Model/Import/Product/Type/Bundle.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ class Bundle extends \Magento\CatalogImportExport\Model\Import\Product\Type\Abst
104104
*/
105105
protected $_specialAttributes = [
106106
'price_type',
107-
'shipment_type',
108107
'weight_type',
109108
'sku_type',
110109
];

dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ public function testBundleImport()
9090
$this->assertFalse($product->isObjectNew());
9191
$this->assertEquals(self::TEST_PRODUCT_NAME, $product->getName());
9292
$this->assertEquals(self::TEST_PRODUCT_TYPE, $product->getTypeId());
93-
//TODO: Uncomment assertion after MAGETWO-49157 fix
94-
//$this->assertEquals(1, $product->getShipmentType());
93+
$this->assertEquals(1, $product->getShipmentType());
9594

9695
$optionIdList = $resource->getProductsIdsBySkus($this->optionSkuList);
9796
$bundleOptionCollection = $product->getExtensionAttributes()->getBundleProductOptions();

dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/_files/import_bundle.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ sku,store_view_code,attribute_set_code,product_type,product_websites,name,produc
22
Simple 1,,Default,simple,base,Simple 1,1,100,,1000,0,1,,,,,
33
Simple 2,,Default,simple,base,Simple 2,1,200,,1000,0,1,,,,,
44
Simple 3,,Default,simple,base,Simple 3,1,300,,1000,0,1,,,,,
5-
Bundle 1,,Default,bundle,base,Bundle 1,1,,shipment_type=Separately,0,0,1,dynamic,dynamic,Price range,dynamic,"name=Option 1,type=checkbox,required=1,sku=Simple 1,price=0.0000,default=0,default_qty=1.0000,price_type=fixed|name=Option 2,type=checkbox,required=1,sku=Simple 2,price=0.0000,default=0,default_qty=1.0000,price_type=fixed|name=Option 2,type=checkbox,required=1,sku=Simple 3,price=0.0000,default=0,default_qty=1.0000,price_type=fixed"
5+
Bundle 1,,Default,bundle,base,Bundle 1,1,,shipment_type=separately,0,0,1,dynamic,dynamic,Price range,dynamic,"name=Option 1,type=checkbox,required=1,sku=Simple 1,price=0.0000,default=0,default_qty=1.0000,price_type=fixed|name=Option 2,type=checkbox,required=1,sku=Simple 2,price=0.0000,default=0,default_qty=1.0000,price_type=fixed|name=Option 2,type=checkbox,required=1,sku=Simple 3,price=0.0000,default=0,default_qty=1.0000,price_type=fixed"

0 commit comments

Comments
 (0)