File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ResolverCache Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -389,13 +389,17 @@ function (ProductInterface $product) {
389
389
$ videoContent = $ galleryEntry ->getExtensionAttributes ()->getVideoContent ();
390
390
391
391
$ galleryEntryArray = $ galleryEntry ->toArray ();
392
- $ galleryEntryArray ['extension_attributes ' ] = [
393
- 'video_content ' => $ videoContent ->toArray (),
394
- ];
392
+ $ videoContentArray = $ videoContent ->toArray ();
395
393
396
394
// unset properties of gallery that are not accepted by the API
397
- unset($ galleryEntryArray ['entity_id ' ]);
398
- unset($ galleryEntryArray ['extension_attributes ' ]['video_content ' ]['entity_id ' ]);
395
+ unset(
396
+ $ galleryEntryArray ['entity_id ' ],
397
+ $ videoContentArray ['entity_id ' ]
398
+ );
399
+
400
+ $ galleryEntryArray ['extension_attributes ' ] = [
401
+ 'video_content ' => $ videoContentArray ,
402
+ ];
399
403
400
404
// update label
401
405
$ galleryEntryArray ['label ' ] = 'new label ' ;
You can’t perform that action at this time.
0 commit comments