File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
dev/tests/integration/testsuite/Magento/Framework/GraphQl/Config
lib/internal/Magento/Framework/GraphQlSchemaStitching/GraphQlReader/MetaReader Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ enumValues(includeDeprecated: true) {
194
194
//Checks to make sure that the given description exists in the expectedOutput array
195
195
196
196
$ this ->assertTrue (
197
- array_key_exists (
197
+ array_key_exists (
198
198
array_search (
199
199
'Comment for SortEnum ' ,
200
200
array_column ($ expectedOutput , 'description ' )
@@ -207,22 +207,20 @@ enumValues(includeDeprecated: true) {
207
207
$ fieldsArray = $ expectedOutput [0 ]['fields ' ];
208
208
$ enumValuesArray = $ expectedOutput [1 ]['enumValues ' ];
209
209
210
- foreach ($ fieldsArray as $ field ){
211
- if ( $ field ['isDeprecated ' ] === true ){
210
+ foreach ($ fieldsArray as $ field ) {
211
+ if ($ field ['isDeprecated ' ] === true ) {
212
212
$ typeDeprecatedReason [] = $ field ['deprecationReason ' ];
213
213
}
214
214
}
215
215
$ this ->assertNotEmpty ($ typeDeprecatedReason );
216
216
$ this ->assertContains ('Deprecated url_path test ' , $ typeDeprecatedReason );
217
217
218
- foreach ($ enumValuesArray as $ enumValue ){
219
- if ( $ enumValue ['isDeprecated ' ] === true ){
218
+ foreach ($ enumValuesArray as $ enumValue ) {
219
+ if ($ enumValue ['isDeprecated ' ] === true ) {
220
220
$ enumValueDeprecatedReason [] = $ enumValue ['deprecationReason ' ];
221
221
}
222
222
}
223
-
224
223
$ this ->assertNotEmpty ($ enumValueDeprecatedReason );
225
224
$ this ->assertContains ('Deprecated SortEnum Value test ' ,$ enumValueDeprecatedReason );
226
-
227
225
}
228
226
}
Original file line number Diff line number Diff line change @@ -99,10 +99,14 @@ public function read(\GraphQL\Type\Definition\FieldDefinition $fieldMeta) : arra
99
99
$ result ['arguments ' ][$ argumentName ]['defaultValue ' ] = $ argumentMeta ->defaultValue ;
100
100
}
101
101
$ typeMeta = $ argumentMeta ->getType ();
102
- $ result ['arguments ' ][$ argumentName ] = array_merge (
103
- $ result ['arguments ' ][$ argumentName ],
104
- $ this ->typeMetaReader ->read ($ typeMeta , TypeMetaWrapperReader::ARGUMENT_PARAMETER )
105
- );
102
+ foreach ($ result ['arguments ' ][$ argumentName ] as $ argument ) {
103
+ $ argument = $ this ->typeMetaReader ->read ($ typeMeta , TypeMetaWrapperReader::ARGUMENT_PARAMETER );
104
+ return $ argument ;
105
+ }
106
+ // $result['arguments'][$argumentName] = array_merge_recursive(
107
+ // $result['arguments'][$argumentName],
108
+ // $this->typeMetaReader->read($typeMeta, TypeMetaWrapperReader::ARGUMENT_PARAMETER)
109
+ // );
106
110
107
111
if ($ this ->docReader ->read ($ argumentMeta ->astNode ->directives )) {
108
112
$ result ['arguments ' ][$ argumentName ]['description ' ] =
You can’t perform that action at this time.
0 commit comments