File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testErrorHandlerReportsFirstErrorOnly()
4343 self ::assertCount (1 , $ responseData ['errors ' ]);
4444
4545 $ errorMsg = $ responseData ['errors ' ][0 ]['message ' ];
46- self ::assertMatchesRegularExpression ('/Unknown directive \"aaaaaa\"./ ' , $ errorMsg );
46+ self ::assertMatchesRegularExpression ('/Unknown directive \"@ aaaaaa\"./ ' , $ errorMsg );
4747 }
4848 }
4949}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public function testIntegerExpectedWhenFloatProvided()
6868 'currentPage ' => 1.1
6969 ];
7070 $ this ->expectException (\Exception::class);
71- $ this ->expectExceptionMessage ('Variable "$currentPage" got invalid value 1.1; Expected type Int; ' .
71+ $ this ->expectExceptionMessage ('Variable "$currentPage" got invalid value 1.1; ' .
7272 'Int cannot represent non-integer value: 1.1 ' );
7373 $ this ->graphQlQuery ($ query , $ variables );
7474 }
@@ -192,7 +192,7 @@ public function testStringExpectedWhenArrayProvided()
192192 'quantity ' => '5.60 '
193193 ];
194194 $ this ->expectException (\Exception::class);
195- $ this ->expectExceptionMessage ('Variable "$sku" got invalid value ["123.78"]; Expected type String; ' .
195+ $ this ->expectExceptionMessage ('Variable "$sku" got invalid value ["123.78"]; ' .
196196 'String cannot represent a non string value: ["123.78"] ' );
197197 $ this ->graphQlMutation ($ query , $ variables );
198198 }
@@ -215,8 +215,8 @@ public function testFloatExpectedWhenNonNumericStringProvided()
215215 'quantity ' => 'ten '
216216 ];
217217 $ this ->expectException (\Exception::class);
218- $ this ->expectExceptionMessage ('Variable "$quantity" got invalid value "ten"; Expected type Float; ' .
219- 'Float cannot represent non numeric value: ten ' );
218+ $ this ->expectExceptionMessage ('Variable "$quantity" got invalid value "ten"; ' .
219+ 'Float cannot represent non numeric value: " ten" ' );
220220 $ this ->graphQlMutation ($ query , $ variables );
221221 }
222222
You can’t perform that action at this time.
0 commit comments