Skip to content

Commit de3bd63

Browse files
glo17680faizan-shk
authored andcommitted
AC-7422:Incompatible issues fix for PHP8.2
1 parent 08eeecd commit de3bd63

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Framework/ErrorHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

dev/tests/api-functional/testsuite/Magento/GraphQl/GraphQlTypeValidationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)