Skip to content

Commit 149d8eb

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-99451: Custom customer address attribute values are empty when address is changed in admin checkout
1 parent 3bba6f3 commit 149d8eb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/internal/Magento/Framework/Api/Test/Unit/ExtensibleDataObjectConverterTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ public function testToNestedArrayCustom()
8383
AttributeValue::VALUE => 'custom_attribute_value_skip',
8484
],
8585
],
86+
'test' => [
87+
0 => [
88+
'3rd_attribute_key' => '3rd_attribute_value',
89+
AbstractExtensibleObject::CUSTOM_ATTRIBUTES_KEY => [
90+
[
91+
AttributeValue::ATTRIBUTE_CODE => 'another_custom_attribute_code',
92+
AttributeValue::VALUE => 'another_custom_attribute_value',
93+
]
94+
]
95+
]
96+
]
8697
];
8798

8899
$resultArray = [
@@ -92,6 +103,12 @@ public function testToNestedArrayCustom()
92103
'custom_attribute_value_multi_1',
93104
'custom_attribute_value_multi_2',
94105
],
106+
'test' => [
107+
0 => [
108+
'3rd_attribute_key' => '3rd_attribute_value',
109+
'another_custom_attribute_code' => 'another_custom_attribute_value',
110+
]
111+
]
95112
];
96113

97114
$this->processor->expects($this->any())

0 commit comments

Comments
 (0)