Skip to content

Commit f8e32a1

Browse files
committed
MAGETWO-52172: [TD] "Use default value" checkbox is missing for Custom Options on product form
1 parent 61f76af commit f8e32a1

File tree

1 file changed

+8
-8
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Initialization

1 file changed

+8
-8
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Initialization/HelperTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ public function testInitialize()
212212
->method('setOptionId');
213213

214214
$optionsData = [
215-
'option1' => ['is_delete' => true, 'name' => 'name1', 'price' => 'price1'],
216-
'option2' => ['is_delete' => false, 'name' => 'name1', 'price' => 'price1'],
215+
'option1' => ['option_id' => 1, 'is_delete' => true, 'name' => 'name1', 'price' => 'price1'],
216+
'option2' => ['option_id' => 2, 'is_delete' => false, 'name' => 'name1', 'price' => 'price1'],
217217
];
218218
$productData = [
219219
'stock_data' => ['stock_data'],
@@ -337,14 +337,14 @@ public function mergeProductOptionsDataProvider()
337337
['key' => 'val'],
338338
],
339339
[
340-
['key' => ['key' => 'val']],
341-
['key' => ['key' => 'val2', 'key2' => 'val2']],
342-
['key' => ['key' => 'val2', 'key2' => 'val2']],
340+
['key' => ['key1' => 'val1', 'key2' => 'val2', 'default_key' => 'val3', 'default_key2' => 'val4']],
341+
['key' => ['key1' => '0', 'key2' => '1']],
342+
['key' => ['key1' => 'val1', 'key2' => 'val4', 'default_key' => 'val3', 'default_key2' => 'val4']],
343343
],
344344
[
345-
['key' => ['key' => 'val', 'another_key' => 'another_value']],
346-
['key' => ['key' => 'val2', 'key2' => 'val2']],
347-
['key' => ['key' => 'val2', 'another_key' => 'another_value', 'key2' => 'val2',]],
345+
['key' => ['key1' => 'val1', 'key2' => 'val2', 'default_key1' => 'val3']],
346+
['key' => ['key1' => '1', 'key2' => '1']],
347+
['key' => ['key1' => 'val3', 'key2' => 'val2', 'default_key1' => 'val3']],
348348
],
349349
];
350350
}

0 commit comments

Comments
 (0)