@@ -63,8 +63,8 @@ public function testWithoutSelectedOption()
63
63
html
64
64
}
65
65
... on ConfigurableProduct {
66
- configurable_options_selection_metadata (
67
- selectedConfigurableOptionValues : []
66
+ configurable_product_options_selection (
67
+ configurableOptionValueUids : []
68
68
) {
69
69
options_available_for_selection {
70
70
option_value_uids
@@ -78,11 +78,11 @@ public function testWithoutSelectedOption()
78
78
QUERY ;
79
79
$ response = $ this ->graphQlQuery ($ query );
80
80
$ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ]));
81
- $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
81
+ $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
82
82
['options_available_for_selection ' ]));
83
- $ this ->assertEquals (4 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
83
+ $ this ->assertEquals (4 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
84
84
['options_available_for_selection ' ][0 ]['option_value_uids ' ]));
85
- $ this ->assertEquals (4 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
85
+ $ this ->assertEquals (4 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
86
86
['options_available_for_selection ' ][1 ]['option_value_uids ' ]));
87
87
}
88
88
@@ -112,8 +112,8 @@ public function testSelectedFirstAttributeFirstOption()
112
112
html
113
113
}
114
114
... on ConfigurableProduct {
115
- configurable_options_selection_metadata (
116
- selectedConfigurableOptionValues : [" {$ firstOptionUid }"]
115
+ configurable_product_options_selection (
116
+ configurableOptionValueUids : [" {$ firstOptionUid }"]
117
117
) {
118
118
options_available_for_selection {
119
119
option_value_uids
@@ -128,20 +128,20 @@ public function testSelectedFirstAttributeFirstOption()
128
128
129
129
$ response = $ this ->graphQlQuery ($ query );
130
130
$ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ]));
131
- $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
131
+ $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
132
132
['options_available_for_selection ' ]));
133
- $ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
133
+ $ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
134
134
['options_available_for_selection ' ][0 ]['option_value_uids ' ]));
135
135
$ this ->assertEquals ($ firstOptionUid , $ response ['products ' ]['items ' ][0 ]
136
- ['configurable_options_selection_metadata ' ]['options_available_for_selection ' ][0 ]['option_value_uids ' ][0 ]);
137
- $ this ->assertEquals (4 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
136
+ ['configurable_product_options_selection ' ]['options_available_for_selection ' ][0 ]['option_value_uids ' ][0 ]);
137
+ $ this ->assertEquals (4 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
138
138
['options_available_for_selection ' ][1 ]['option_value_uids ' ]));
139
139
140
140
$ secondAttributeOptions = $ this ->getSecondConfigurableAttribute ()->getOptions ();
141
141
$ this ->assertAvailableOptionUids (
142
142
$ this ->getSecondConfigurableAttribute ()->getAttributeId (),
143
143
$ secondAttributeOptions ,
144
- $ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
144
+ $ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
145
145
['options_available_for_selection ' ][1 ]['option_value_uids ' ]
146
146
);
147
147
}
@@ -172,8 +172,8 @@ public function testSelectedFirstAttributeLastOption()
172
172
html
173
173
}
174
174
... on ConfigurableProduct {
175
- configurable_options_selection_metadata (
176
- selectedConfigurableOptionValues : [" {$ lastOptionUid }"]
175
+ configurable_product_options_selection (
176
+ configurableOptionValueUids : [" {$ lastOptionUid }"]
177
177
) {
178
178
options_available_for_selection {
179
179
option_value_uids
@@ -188,13 +188,13 @@ public function testSelectedFirstAttributeLastOption()
188
188
189
189
$ response = $ this ->graphQlQuery ($ query );
190
190
$ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ]));
191
- $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
191
+ $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
192
192
['options_available_for_selection ' ]));
193
- $ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
193
+ $ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
194
194
['options_available_for_selection ' ][0 ]['option_value_uids ' ]));
195
- $ this ->assertEquals ($ lastOptionUid , $ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
195
+ $ this ->assertEquals ($ lastOptionUid , $ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
196
196
['options_available_for_selection ' ][0 ]['option_value_uids ' ][0 ]);
197
- $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
197
+ $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
198
198
['options_available_for_selection ' ][1 ]['option_value_uids ' ]));
199
199
$ secondAttributeOptions = $ this ->getSecondConfigurableAttribute ()->getOptions ();
200
200
unset($ secondAttributeOptions [0 ]);
@@ -203,7 +203,7 @@ public function testSelectedFirstAttributeLastOption()
203
203
$ this ->assertAvailableOptionUids (
204
204
$ this ->getSecondConfigurableAttribute ()->getAttributeId (),
205
205
$ secondAttributeOptions ,
206
- $ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
206
+ $ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
207
207
['options_available_for_selection ' ][1 ]['option_value_uids ' ]
208
208
);
209
209
}
@@ -240,8 +240,8 @@ public function testSelectedVariant()
240
240
html
241
241
}
242
242
... on ConfigurableProduct {
243
- configurable_options_selection_metadata (
244
- selectedConfigurableOptionValues : [" {$ firstAttributeFirstOptionUid }", " {$ secondAttributeFirstOptionUid }"]
243
+ configurable_product_options_selection (
244
+ configurableOptionValueUids : [" {$ firstAttributeFirstOptionUid }", " {$ secondAttributeFirstOptionUid }"]
245
245
) {
246
246
options_available_for_selection {
247
247
option_value_uids
@@ -259,11 +259,11 @@ public function testSelectedVariant()
259
259
QUERY ;
260
260
$ response = $ this ->graphQlQuery ($ query );
261
261
$ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ]));
262
- $ this ->assertNotNull ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
262
+ $ this ->assertNotNull ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
263
263
['variant ' ]);
264
264
$ this ->assertEquals (
265
265
'simple_ ' . $ firstOptions [1 ]->getValue () . '_ ' . $ secondOptions [1 ]->getValue (),
266
- $ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
266
+ $ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
267
267
['variant ' ]['sku ' ]
268
268
);
269
269
}
@@ -288,8 +288,8 @@ public function testMediaGalleryForAll()
288
288
html
289
289
}
290
290
... on ConfigurableProduct {
291
- configurable_options_selection_metadata (
292
- selectedConfigurableOptionValues : []
291
+ configurable_product_options_selection (
292
+ configurableOptionValueUids : []
293
293
) {
294
294
options_available_for_selection {
295
295
option_value_uids
@@ -306,7 +306,7 @@ public function testMediaGalleryForAll()
306
306
QUERY ;
307
307
$ response = $ this ->graphQlQuery ($ query );
308
308
$ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ]));
309
- $ this ->assertEquals (14 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
309
+ $ this ->assertEquals (14 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
310
310
['media_gallery ' ]));
311
311
}
312
312
@@ -336,8 +336,8 @@ public function testMediaGalleryWithSelection()
336
336
html
337
337
}
338
338
... on ConfigurableProduct {
339
- configurable_options_selection_metadata (
340
- selectedConfigurableOptionValues : [" $ lastOptionUid"]
339
+ configurable_product_options_selection (
340
+ configurableOptionValueUids : [" $ lastOptionUid"]
341
341
) {
342
342
options_available_for_selection {
343
343
option_value_uids
@@ -354,7 +354,7 @@ public function testMediaGalleryWithSelection()
354
354
QUERY ;
355
355
$ response = $ this ->graphQlQuery ($ query );
356
356
$ this ->assertEquals (1 , count ($ response ['products ' ]['items ' ]));
357
- $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_options_selection_metadata ' ]
357
+ $ this ->assertEquals (2 , count ($ response ['products ' ]['items ' ][0 ]['configurable_product_options_selection ' ]
358
358
['media_gallery ' ]));
359
359
}
360
360
0 commit comments