You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/tests/api-functional/testsuite/Magento/GraphQl/GraphQlTypeValidationTest.php
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,8 @@ 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; Int cannot represent non-integer value: 1.1');
71
+
$this->expectExceptionMessage('Variable "$currentPage" got invalid value 1.1; Expected type Int; ' .
72
+
'Int cannot represent non-integer value: 1.1');
72
73
$this->graphQlQuery($query, $variables);
73
74
}
74
75
@@ -191,7 +192,8 @@ public function testStringExpectedWhenArrayProvided()
191
192
'quantity' => '5.60'
192
193
];
193
194
$this->expectException(\Exception::class);
194
-
$this->expectExceptionMessage('Variable "$sku" got invalid value ["123.78"]; Expected type String; String cannot represent a non string value: ["123.78"]');
195
+
$this->expectExceptionMessage('Variable "$sku" got invalid value ["123.78"]; Expected type String; ' .
196
+
'String cannot represent a non string value: ["123.78"]');
195
197
$this->graphQlMutation($query, $variables);
196
198
}
197
199
@@ -213,7 +215,8 @@ public function testFloatExpectedWhenNonNumericStringProvided()
213
215
'quantity' => 'ten'
214
216
];
215
217
$this->expectException(\Exception::class);
216
-
$this->expectExceptionMessage('Variable "$quantity" got invalid value "ten"; Expected type Float; Float cannot represent non numeric value: ten');
218
+
$this->expectExceptionMessage('Variable "$quantity" got invalid value "ten"; Expected type Float; ' .
0 commit comments