@@ -79,7 +79,6 @@ class AttributesListTest extends GraphQlAbstract
79
79
{
80
80
private const ATTRIBUTE_NOT_FOUND_ERROR = "Attribute was not found in query result " ;
81
81
82
-
83
82
public function testAttributesListForCustomerEntityType (): void
84
83
{
85
84
$ queryResult = $ this ->graphQlQuery (<<<QRY
@@ -112,23 +111,35 @@ public function testAttributesListForCustomerEntityType(): void
112
111
113
112
$ this ->assertEquals (
114
113
$ customerAttribute0 ->getAttributeCode (),
115
- $ this ->getAttributeByCode ($ queryResult ['attributesList ' ]['items ' ], $ customerAttribute0 ->getAttributeCode ())['code ' ],
114
+ $ this ->getAttributeByCode (
115
+ $ queryResult ['attributesList ' ]['items ' ],
116
+ $ customerAttribute0 ->getAttributeCode ()
117
+ )['code ' ],
116
118
self ::ATTRIBUTE_NOT_FOUND_ERROR
117
119
);
118
120
119
121
$ this ->assertEquals (
120
122
$ customerAttribute1 ->getAttributeCode (),
121
- $ this ->getAttributeByCode ($ queryResult ['attributesList ' ]['items ' ], $ customerAttribute1 ->getAttributeCode ())['code ' ],
123
+ $ this ->getAttributeByCode (
124
+ $ queryResult ['attributesList ' ]['items ' ],
125
+ $ customerAttribute1 ->getAttributeCode ()
126
+ )['code ' ],
122
127
self ::ATTRIBUTE_NOT_FOUND_ERROR
123
128
);
124
129
$ this ->assertEquals (
125
130
$ customerAttribute2 ->getAttributeCode (),
126
- $ this ->getAttributeByCode ($ queryResult ['attributesList ' ]['items ' ], $ customerAttribute2 ->getAttributeCode ())['code ' ],
131
+ $ this ->getAttributeByCode (
132
+ $ queryResult ['attributesList ' ]['items ' ],
133
+ $ customerAttribute2 ->getAttributeCode ()
134
+ )['code ' ],
127
135
self ::ATTRIBUTE_NOT_FOUND_ERROR
128
136
);
129
137
$ this ->assertEquals (
130
138
[],
131
- $ this ->getAttributeByCode ($ queryResult ['attributesList ' ]['items ' ], $ creditmemoAttribute5 ->getAttributeCode ())
139
+ $ this ->getAttributeByCode (
140
+ $ queryResult ['attributesList ' ]['items ' ],
141
+ $ creditmemoAttribute5 ->getAttributeCode ()
142
+ )
132
143
);
133
144
}
134
145
@@ -161,17 +172,26 @@ public function testAttributesListForCatalogProductEntityType(): void
161
172
162
173
$ this ->assertEquals (
163
174
$ catalogAttribute3 ->getAttributeCode (),
164
- $ this ->getAttributeByCode ($ queryResult ['attributesList ' ]['items ' ], $ catalogAttribute3 ->getAttributeCode ())['code ' ],
175
+ $ this ->getAttributeByCode (
176
+ $ queryResult ['attributesList ' ]['items ' ],
177
+ $ catalogAttribute3 ->getAttributeCode ()
178
+ )['code ' ],
165
179
self ::ATTRIBUTE_NOT_FOUND_ERROR
166
180
);
167
181
$ this ->assertEquals (
168
182
$ catalogAttribute4 ->getAttributeCode (),
169
- $ this ->getAttributeByCode ($ queryResult ['attributesList ' ]['items ' ], $ catalogAttribute4 ->getAttributeCode ())['code ' ],
183
+ $ this ->getAttributeByCode (
184
+ $ queryResult ['attributesList ' ]['items ' ],
185
+ $ catalogAttribute4 ->getAttributeCode ()
186
+ )['code ' ],
170
187
self ::ATTRIBUTE_NOT_FOUND_ERROR
171
188
);
172
189
$ this ->assertEquals (
173
190
[],
174
- $ this ->getAttributeByCode ($ queryResult ['attributesList ' ]['items ' ], $ creditmemoAttribute5 ->getAttributeCode ())
191
+ $ this ->getAttributeByCode (
192
+ $ queryResult ['attributesList ' ]['items ' ],
193
+ $ creditmemoAttribute5 ->getAttributeCode ()
194
+ )
175
195
);
176
196
}
177
197
0 commit comments