Skip to content

Commit 065b7f7

Browse files
ENGCOM-5734: Upgrade graphql-php to v0.13.6 #844
- Merge Pull Request magento/graphql-ce#844 from pmclain/graphql-ce:issue/777 - Merged commits: 1. f30bb79 2. d504472 3. fe9d262 4. 9b2297a 5. fac2081
2 parents d93d288 + fac2081 commit 065b7f7

File tree

14 files changed

+61
-34
lines changed

14 files changed

+61
-34
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"symfony/process": "~4.1.0|~4.2.0|~4.3.0",
5353
"tedivm/jshrink": "~1.3.0",
5454
"tubalmartin/cssmin": "4.1.1",
55-
"webonyx/graphql-php": "^0.12.6",
55+
"webonyx/graphql-php": "^0.13.6",
5656
"zendframework/zend-captcha": "^2.7.1",
5757
"zendframework/zend-code": "~3.3.0",
5858
"zendframework/zend-config": "^2.6.0",

composer.lock

Lines changed: 20 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ public function invalidInputDataProvider()
303303
{
304304
return [
305305
['', 'Syntax Error: Expected Name, found )'],
306-
['input: ""', 'Expected type CustomerAddressInput!, found "".'],
307-
['input: "foo"', 'Expected type CustomerAddressInput!, found "foo".']
306+
['input: ""', 'requires type CustomerAddressInput!, found "".'],
307+
['input: "foo"', 'requires type CustomerAddressInput!, found "foo".']
308308
];
309309
}
310310

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ public function invalidInputDataProvider()
306306
{
307307
return [
308308
['', '"input" value must be specified'],
309-
['input: ""', 'Expected type CustomerAddressInput, found ""'],
310-
['input: "foo"', 'Expected type CustomerAddressInput, found "foo"']
309+
['input: ""', 'requires type CustomerAddressInput, found ""'],
310+
['input: "foo"', 'requires type CustomerAddressInput, found "foo"']
311311
];
312312
}
313313

dev/tests/integration/testsuite/Magento/GraphQl/Controller/GraphQlControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function testError() : void
251251
foreach ($outputResponse['errors'] as $error) {
252252
$this->assertEquals(
253253
\Magento\Framework\GraphQl\Exception\GraphQlInputException::EXCEPTION_CATEGORY,
254-
$error['category']
254+
$error['extensions']['category']
255255
);
256256
if (isset($error['message'])) {
257257
$this->assertEquals($error['message'], 'Invalid entity_type specified: invalid');

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PaypalExpressTokenTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function testResolveWithPaypalError($paymentMethod): void
136136
$this->assertArrayHasKey('errors', $responseData);
137137
$actualError = $responseData['errors'][0];
138138
$this->assertEquals($expectedExceptionMessage, $actualError['message']);
139-
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['category']);
139+
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);
140140
}
141141

142142
/**
@@ -173,7 +173,7 @@ public function testResolveWithInvalidRedirectUrl($paymentMethod): void
173173
$this->assertArrayHasKey('errors', $responseData);
174174
$actualError = $responseData['errors'][0];
175175
$this->assertEquals($expectedExceptionMessage, $actualError['message']);
176-
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['category']);
176+
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);
177177
}
178178

179179
/**

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PaypalPayflowProTokenExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ public function testResolveWithPaypalError(): void
7373
$this->assertArrayHasKey('errors', $responseData);
7474
$actualError = $responseData['errors'][0];
7575
$this->assertEquals($expectedExceptionMessage, $actualError['message']);
76-
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['category']);
76+
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);
7777
}
7878
}

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PaypalPayflowProTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@ public function testResolveWithInvalidRedirectUrl(): void
130130
$this->assertArrayHasKey('errors', $responseData);
131131
$actualError = $responseData['errors'][0];
132132
$this->assertEquals($expectedExceptionMessage, $actualError['message']);
133-
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['category']);
133+
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);
134134
}
135135
}

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PlaceOrderWithHostedProTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function testOrderWithHostedProDeclined(): void
206206
$this->assertArrayHasKey('errors', $responseData);
207207
$actualError = $responseData['errors'][0];
208208
$this->assertEquals($expectedExceptionMessage, $actualError['message']);
209-
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['category']);
209+
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);
210210
}
211211

212212
/**
@@ -258,6 +258,6 @@ public function testSetPaymentMethodInvalidUrls()
258258
$this->assertArrayHasKey('errors', $responseData);
259259
$actualError = $responseData['errors'][0];
260260
$this->assertEquals($expectedExceptionMessage, $actualError['message']);
261-
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['category']);
261+
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);
262262
}
263263
}

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PlaceOrderWithPayflowLinkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,6 @@ public function testResolveWithPayflowLinkDeclined(): void
273273
$expectedExceptionMessage,
274274
$actualError['message']
275275
);
276-
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['category']);
276+
$this->assertEquals(GraphQlInputException::EXCEPTION_CATEGORY, $actualError['extensions']['category']);
277277
}
278278
}

0 commit comments

Comments
 (0)