Skip to content

Commit

Permalink
magento-engcom#103: Add tests for new validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pogster committed Jul 17, 2018
1 parent d45d53f commit 89f1ccc
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,24 @@ public function attributeValidationProvider()
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 2'],
true
],
[
Import::BEHAVIOR_APPEND,
['is_required' => true, 'type' => 'multiselect', 'options' => ['option 1' => 0, 'option 2' => 1, 'option 3']],
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 2|Option 1'],
false
],
[
Import::BEHAVIOR_APPEND,
['is_required' => true, 'type' => 'multiselect', 'options' => ['option 1' => 0, 'option 2' => 1, 'option 3']],
['product_type' => 'any', 'attribute_code' => 'Option 3|Option 3|Option 3|Option 1'],
false
],
[
Import::BEHAVIOR_APPEND,
['is_required' => true, 'type' => 'multiselect', 'options' => ['option 1' => 0]],
['product_type' => 'any', 'attribute_code' => 'Option 1|Option 1|Option 1|Option 1'],
false
],
[
Import::BEHAVIOR_APPEND,
['is_required' => true, 'type' => 'datetime'],
Expand Down

0 comments on commit 89f1ccc

Please sign in to comment.