Skip to content

Commit 2696261

Browse files
committed
AC-10665: Integration Failures with PHP8.3
1 parent 56a7693 commit 2696261

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

dev/tests/integration/testsuite/Magento/GraphQl/App/GraphQlCheckoutMutationsStateTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ class GraphQlCheckoutMutationsStateTest extends \PHPUnit\Framework\TestCase
3030
*/
3131
protected function setUp(): void
3232
{
33-
$this->graphQlStateDiff = new GraphQlStateDiff();
33+
if (!class_exists(GraphQlStateDiff::class)) {
34+
$this->markTestSkipped('GraphQlStateDiff class is not available on this version of Magento.');
35+
} else {
36+
$this->graphQlStateDiff = new GraphQlStateDiff();
37+
}
3438
parent::setUp();
3539
}
3640

dev/tests/integration/testsuite/Magento/GraphQl/App/GraphQlStateTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ class GraphQlStateTest extends \PHPUnit\Framework\TestCase
3535
*/
3636
protected function setUp(): void
3737
{
38-
$this->graphQlStateDiff = new GraphQlStateDiff();
38+
if (!class_exists(GraphQlStateDiff::class)) {
39+
$this->markTestSkipped('GraphQlStateDiff class is not available on this version of Magento.');
40+
} else {
41+
$this->graphQlStateDiff = new GraphQlStateDiff();
42+
}
3943
parent::setUp();
4044
}
4145

0 commit comments

Comments
 (0)