Skip to content

Commit c44266d

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-44238: Categories imported in a comma-separated format are not created properly
1 parent 605f4bf commit c44266d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/CategoryProcessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function setUp()
110110

111111
public function testUpsertCategories()
112112
{
113-
$categoryIds = $this->categoryProcessor->upsertCategories(self::CHILD_CATEGORY_NAME);
113+
$categoryIds = $this->categoryProcessor->upsertCategories(self::CHILD_CATEGORY_NAME, ',');
114114
$this->assertArrayHasKey(self::CHILD_CATEGORY_ID, array_flip($categoryIds));
115115
}
116116

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/ValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public function testIsBooleanAttributeValid()
8383
[
8484
'type' => 'boolean',
8585
'apply_to' => ['simple'],
86-
'is_required' => false
86+
'is_required' => false,
87+
'options' => ['yes' => 0, 'no' => 1]
8788
],
8889
[
8990
'product_type' => 'simple',

0 commit comments

Comments
 (0)