Skip to content

Commit d45e4f8

Browse files
committed
magento-engcom/import-export-improvements#103: Add tests for new validation.
1 parent a765ec7 commit d45e4f8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,26 @@ public function attributeValidationProvider()
167167
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 2'],
168168
true
169169
],
170+
[
171+
Import::BEHAVIOR_APPEND,
172+
['is_required' => true, 'type' => 'multiselect',
173+
'options' => ['option 1' => 0, 'option 2' => 1, 'option 3']],
174+
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 2|Option 1'],
175+
false
176+
],
177+
[
178+
Import::BEHAVIOR_APPEND,
179+
['is_required' => true, 'type' => 'multiselect',
180+
'options' => ['option 1' => 0, 'option 2' => 1, 'option 3']],
181+
['product_type' => 'any', 'attribute_code' => 'Option 3|Option 3|Option 3|Option 1'],
182+
false
183+
],
184+
[
185+
Import::BEHAVIOR_APPEND,
186+
['is_required' => true, 'type' => 'multiselect', 'options' => ['option 1' => 0]],
187+
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 1|Option 1|Option 1'],
188+
false
189+
],
170190
[
171191
Import::BEHAVIOR_APPEND,
172192
['is_required' => true, 'type' => 'datetime'],

0 commit comments

Comments
 (0)