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()
43
43
self ::assertCount (1 , $ responseData ['errors ' ]);
44
44
45
45
$ errorMsg = $ responseData ['errors ' ][0 ]['message ' ];
46
- self ::assertMatchesRegularExpression ('/Unknown directive \"aaaaaa\"./ ' , $ errorMsg );
46
+ self ::assertMatchesRegularExpression ('/Unknown directive \"@ aaaaaa\"./ ' , $ errorMsg );
47
47
}
48
48
}
49
49
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public function testIntegerExpectedWhenFloatProvided()
68
68
'currentPage ' => 1.1
69
69
];
70
70
$ 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; ' .
72
72
'Int cannot represent non-integer value: 1.1 ' );
73
73
$ this ->graphQlQuery ($ query , $ variables );
74
74
}
@@ -192,7 +192,7 @@ public function testStringExpectedWhenArrayProvided()
192
192
'quantity ' => '5.60 '
193
193
];
194
194
$ 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"]; ' .
196
196
'String cannot represent a non string value: ["123.78"] ' );
197
197
$ this ->graphQlMutation ($ query , $ variables );
198
198
}
@@ -215,8 +215,8 @@ public function testFloatExpectedWhenNonNumericStringProvided()
215
215
'quantity ' => 'ten '
216
216
];
217
217
$ 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" ' );
220
220
$ this ->graphQlMutation ($ query , $ variables );
221
221
}
222
222
You can’t perform that action at this time.
0 commit comments