Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 89f1ccc

Browse files
committed
#103: Add tests for new validation.
1 parent d45d53f commit 89f1ccc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,24 @@ 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', 'options' => ['option 1' => 0, 'option 2' => 1, 'option 3']],
173+
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 2|Option 1'],
174+
false
175+
],
176+
[
177+
Import::BEHAVIOR_APPEND,
178+
['is_required' => true, 'type' => 'multiselect', 'options' => ['option 1' => 0, 'option 2' => 1, 'option 3']],
179+
['product_type' => 'any', 'attribute_code' => 'Option 3|Option 3|Option 3|Option 1'],
180+
false
181+
],
182+
[
183+
Import::BEHAVIOR_APPEND,
184+
['is_required' => true, 'type' => 'multiselect', 'options' => ['option 1' => 0]],
185+
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 1|Option 1|Option 1'],
186+
false
187+
],
170188
[
171189
Import::BEHAVIOR_APPEND,
172190
['is_required' => true, 'type' => 'datetime'],

0 commit comments

Comments
 (0)