@@ -115,7 +115,7 @@ public function testUpdateMultistorePreservingOtherStoreLabel()
115
115
$ store2Label = 'Store 2 Label ' ;
116
116
$ store1LabelUpdated = 'Store 1 Label Updated ' ;
117
117
118
- // First, create an option with multiple store labels
118
+ // First, create an option with multiple store labels and add the option
119
119
$ initialOptionData = [
120
120
AttributeOptionInterface::LABEL => $ attributeLabel ,
121
121
AttributeOptionInterface::STORE_LABELS => [
@@ -129,8 +129,6 @@ public function testUpdateMultistorePreservingOtherStoreLabel()
129
129
],
130
130
],
131
131
];
132
-
133
- // Add the option first
134
132
$ newOptionId = $ this ->webApiCallAttributeOptions (
135
133
$ attributeCode ,
136
134
Request::HTTP_METHOD_POST ,
@@ -153,7 +151,6 @@ public function testUpdateMultistorePreservingOtherStoreLabel()
153
151
],
154
152
],
155
153
];
156
-
157
154
$ response = $ this ->webApiCallAttributeOptions (
158
155
$ attributeCode ,
159
156
Request::HTTP_METHOD_PUT ,
@@ -167,8 +164,6 @@ public function testUpdateMultistorePreservingOtherStoreLabel()
167
164
);
168
165
$ this ->assertTrue ($ response , 'Update should be successful ' );
169
166
170
- // Test store labels preservation by checking labels in different store contexts
171
- // This verifies that the fix for preserving store labels is working correctly
172
167
$ store1Options = $ this ->getAttributeOptions ($ attributeCode , $ store1 ->getCode ());
173
168
$ store2Options = $ this ->getAttributeOptions ($ attributeCode , $ store2 ->getCode ());
174
169
0 commit comments