@@ -141,6 +141,7 @@ public function testComplexAttributeTypeResolver()
141
141
* For undefined attributes and for attributes with no backendModel mapping available
142
142
*
143
143
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
144
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
144
145
*/
145
146
public function testUnDefinedAttributeType ()
146
147
{
@@ -177,17 +178,16 @@ public function testUnDefinedAttributeType()
177
178
$ expectedAttributeCodes = ['media_gallery ' , 'undefine_attribute ' , 'special_price ' ];
178
179
$ entityTypes = ['catalog_product ' , 'catalog_category ' , 'customer ' ];
179
180
$ attributeTypes = ['AnyType ' ];
180
- $ attributeMetaData = array_map (null ,$ response ['customAttributeMetadata ' ]['items ' ], $ entityTypes );
181
- foreach ($ attributeMetaData as $ itemsIndex =>$ itemArray )
182
- {
183
- $ this ->assertResponseFields (
184
- $ attributeMetaData [$ itemsIndex ][0 ],
185
- [
181
+ $ attributeMetaData = array_map (null , $ response ['customAttributeMetadata ' ]['items ' ], $ entityTypes );
182
+ foreach ($ attributeMetaData as $ itemsIndex => $ itemArray ) {
183
+ $ this ->assertResponseFields (
184
+ $ attributeMetaData [$ itemsIndex ][0 ],
185
+ [
186
186
"attribute_code " => $ expectedAttributeCodes [$ itemsIndex ],
187
187
"attribute_type " =>$ attributeTypes [0 ],
188
188
"entity_type " => $ entityTypes [$ itemsIndex ]
189
- ]
190
- );
189
+ ]
190
+ );
191
191
}
192
192
}
193
193
0 commit comments