File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
dev/tests/integration/testsuite/Magento
PaypalGraphQl/Model/Resolver/Guest Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ public function testDispatchGetWithParameterizedVariables() : void
175175 id
176176 name
177177 sku
178- }
178+ }
179179 }
180180}
181181QUERY ;
@@ -223,12 +223,12 @@ public function testError() : void
223223 }
224224 ])
225225 {
226- items{
226+ items{
227227 attribute_code
228228 attribute_type
229229 entity_type
230- }
231- }
230+ }
231+ }
232232 }
233233QUERY ;
234234
@@ -249,6 +249,10 @@ public function testError() : void
249249 if (isset ($ outputResponse ['errors ' ][0 ])) {
250250 if (is_array ($ outputResponse ['errors ' ][0 ])) {
251251 foreach ($ outputResponse ['errors ' ] as $ error ) {
252+ $ this ->assertEquals (
253+ \Magento \Framework \GraphQl \Exception \GraphQlInputException::EXCEPTION_CATEGORY ,
254+ $ error ['extensions ' ]['category ' ]
255+ );
252256 if (isset ($ error ['message ' ])) {
253257 $ this ->assertEquals ($ error ['message ' ], 'Invalid entity_type specified: invalid ' );
254258 }
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ public function testResolveWithPaypalError($paymentMethod): void
136136 $ this ->assertArrayHasKey ('errors ' , $ responseData );
137137 $ actualError = $ responseData ['errors ' ][0 ];
138138 $ this ->assertEquals ($ expectedExceptionMessage , $ actualError ['message ' ]);
139+ $ this ->assertEquals (GraphQlInputException::EXCEPTION_CATEGORY , $ actualError ['extensions ' ]['category ' ]);
139140 }
140141
141142 /**
You can’t perform that action at this time.
0 commit comments