Skip to content

Commit 162e6b3

Browse files
author
Michail Slabko
committed
MAGETWO-44055: [GITHUB] Admin product «Custom Options» tab controls («Import Options», «Add New Option» buttons) do not work when non-English locale is used #1971
- fix unit
1 parent fa0b95e commit 162e6b3

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Catalog/Test/Unit/Model/Config/Source/Product/Options

1 file changed

+5
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Config/Source/Product/Options/TypeTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public function testToOptionArray()
5151
];
5252
$expect = [
5353
['value' => '', 'label' => __('-- Please select --')],
54-
['label' => 'optionLabel', 'optgroup-name' => 'optionLabel', 'value' => [['label' => 'typeLabel', 'value' => 'typeName']]],
54+
[
55+
'label' => 'optionLabel',
56+
'optgroup-name' => 'optionLabel',
57+
'value' => [['label' => 'typeLabel', 'value' => 'typeName']]
58+
],
5559
];
5660

5761
$this->productOptionConfig->expects($this->any())->method('getAll')->will($this->returnValue($allOptions));

0 commit comments

Comments
 (0)