Skip to content

Commit 57f5b62

Browse files
committed
Revert "AC-7693:PHP8.2 backward compatibility"
This reverts commit f081914.
1 parent f232f45 commit 57f5b62

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function testDispatchGetWithParameterizedVariables() : void
175175
id
176176
name
177177
sku
178-
}
178+
}
179179
}
180180
}
181181
QUERY;
@@ -223,12 +223,12 @@ public function testError() : void
223223
}
224224
])
225225
{
226-
items{
226+
items{
227227
attribute_code
228228
attribute_type
229229
entity_type
230-
}
231-
}
230+
}
231+
}
232232
}
233233
QUERY;
234234

@@ -249,6 +249,10 @@ public function testError() : void
249249
if (isset($outputResponse['errors'][0])) {
250250
if (is_array($outputResponse['errors'][0])) {
251251
foreach ($outputResponse['errors'] as $error) {
252+
$this->assertEquals(
253+
\Magento\Framework\GraphQl\Exception\GraphQlInputException::EXCEPTION_CATEGORY,
254+
$error['extensions']['category']
255+
);
252256
if (isset($error['message'])) {
253257
$this->assertEquals($error['message'], 'Invalid entity_type specified: invalid');
254258
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +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['extensions']['category']);
139140
}
140141

141142
/**

0 commit comments

Comments
 (0)