File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
app/code/Magento/CatalogGraphQl/etc
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ interface CustomizableOptionInterface @typeResolver(class: "Magento\\CatalogGrap
358
358
title : String @doc (description : " The display name for this option" )
359
359
required : Boolean @doc (description : " Indicates whether the option is required" )
360
360
sort_order : Int @doc (description : " The order in which the option is displayed" )
361
+ option_id : Int @doc (description : " Option ID" )
361
362
}
362
363
363
364
interface CustomizableProductInterface @typeResolver (class : " Magento\\ CatalogGraphQl\\ Model\\ ProductInterfaceTypeResolverComposite" ) @doc (description : " CustomizableProductInterface contains information about customizable product options." ) {
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ public function testQueryAllFieldsSimpleProduct()
90
90
title
91
91
required
92
92
sort_order
93
+ option_id
93
94
... on CustomizableFieldOption {
94
95
product_sku
95
96
field_option: value {
@@ -334,6 +335,7 @@ public function testQueryMediaGalleryEntryFieldsSimpleProduct()
334
335
title
335
336
required
336
337
sort_order
338
+ option_id
337
339
... on CustomizableFieldOption {
338
340
product_sku
339
341
field_option: value {
@@ -749,7 +751,8 @@ private function assertOptions($product, $actualResponse)
749
751
$ assertionMap = [
750
752
['response_field ' => 'sort_order ' , 'expected_value ' => $ option ->getSortOrder ()],
751
753
['response_field ' => 'title ' , 'expected_value ' => $ option ->getTitle ()],
752
- ['response_field ' => 'required ' , 'expected_value ' => $ option ->getIsRequire ()]
754
+ ['response_field ' => 'required ' , 'expected_value ' => $ option ->getIsRequire ()],
755
+ ['response_field ' => 'option_id ' , 'expected_value ' => $ option ->getOptionId ()]
753
756
];
754
757
755
758
if (!empty ($ option ->getValues ())) {
@@ -773,7 +776,7 @@ private function assertOptions($product, $actualResponse)
773
776
['response_field ' => 'product_sku ' , 'expected_value ' => $ option ->getProductSku ()],
774
777
]
775
778
);
776
- $ valueKeyName = "" ;
779
+
777
780
if ($ option ->getType () === 'file ' ) {
778
781
$ valueKeyName = 'file_option ' ;
779
782
$ valueAssertionMap = [
You can’t perform that action at this time.
0 commit comments