Skip to content

Commit 08eeecd

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

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerAddressTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,8 @@ public function invalidInputDataProvider()
809809
{
810810
return [
811811
['', 'Syntax Error: Expected Name, found )'],
812-
['input: ""', 'requires type CustomerAddressInput!, found "".'],
813-
['input: "foo"', 'requires type CustomerAddressInput!, found "foo".']
812+
['input: ""', 'Expected value of type "CustomerAddressInput", found "".'],
813+
['input: "foo"', 'Expected value of type "CustomerAddressInput", found "foo".']
814814
];
815815
}
816816

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function invalidEmailAddressDataProvider(): array
234234
public function testCreateCustomerIfPassedAttributeDosNotExistsInCustomerInput()
235235
{
236236
$this->expectException(\Exception::class);
237-
$this->expectExceptionMessage('Field "test123" is not defined by type CustomerInput.');
237+
$this->expectExceptionMessage('Field "test123" is not defined by type "CustomerInput".');
238238

239239
$newFirstname = 'Richard';
240240
$newLastname = 'Rowe';

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerV2Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function invalidEmailAddressDataProvider(): array
234234
public function testCreateCustomerIfPassedAttributeDosNotExistsInCustomerInput()
235235
{
236236
$this->expectException(\Exception::class);
237-
$this->expectExceptionMessage('Field "test123" is not defined by type CustomerCreateInput.');
237+
$this->expectExceptionMessage('Field "test123" is not defined by type "CustomerCreateInput".');
238238

239239
$newFirstname = 'Richard';
240240
$newLastname = 'Rowe';

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/UpdateCustomerAddressTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public function testUpdateCustomerAddressWithInvalidIdType()
388388
MUTATION;
389389

390390
$this->expectException(Exception::class);
391-
$this->expectExceptionMessage('Field "updateCustomerAddress" argument "id" requires type Int!, found "".');
391+
$this->expectExceptionMessage('Int cannot represent non-integer value: ""');
392392
$this->graphQlMutation($mutation, [], '', $this->getCustomerAuthHeaders($userName, $password));
393393
}
394394

@@ -430,9 +430,9 @@ public function invalidInputDataProvider()
430430
['', '"input" value must be specified'],
431431
[
432432
'input: ""',
433-
'Field "updateCustomerAddress" argument "input" requires type CustomerAddressInput, found ""'
433+
'Expected value of type "CustomerAddressInput", found ""'
434434
],
435-
['input: "foo"', 'requires type CustomerAddressInput, found "foo"']
435+
['input: "foo"', 'Expected value of type "CustomerAddressInput", found "foo"']
436436
];
437437
}
438438

0 commit comments

Comments
 (0)