File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
dev/tests/integration/testsuite/Magento/GraphQl/App Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ protected function setUp(): void
39
39
$ this ->markTestSkipped ('GraphQlStateDiff class is not available on this version of Magento. ' );
40
40
}
41
41
42
- $ this ->graphQlStateDiff = new GraphQlStateDiff ();
42
+ $ this ->graphQlStateDiff = new GraphQlStateDiff ($ this );
43
43
parent ::setUp ();
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ protected function setUp(): void
36
36
$ this ->markTestSkipped ('GraphQlStateDiff class is not available on this version of Magento. ' );
37
37
}
38
38
39
- $ this ->graphQlStateDiff = new GraphQlStateDiff ();
39
+ $ this ->graphQlStateDiff = new GraphQlStateDiff ($ this );
40
40
parent ::setUp ();
41
41
}
42
42
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ protected function setUp(): void
39
39
$ this ->markTestSkipped ('GraphQlStateDiff class is not available on this version of Magento. ' );
40
40
}
41
41
42
- $ this ->graphQlStateDiff = new GraphQlStateDiff ();
42
+ $ this ->graphQlStateDiff = new GraphQlStateDiff ($ this );
43
43
parent ::setUp ();
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -58,8 +58,15 @@ class GraphQlStateDiff
58
58
/**
59
59
* Constructor
60
60
*/
61
- public function __construct ()
61
+ public function __construct (TestCase $ test = null )
62
62
{
63
+ if (8 == PHP_MAJOR_VERSION && PHP_MINOR_VERSION < 4 ) {
64
+ $ test ->markTestSkipped (
65
+ "This test isn't compatible with PHP 8.3 versions less than PHP 8.3.4 because of "
66
+ . "bug in garbage collector. https://github.com/php/php-src/issues/13569 "
67
+ . " will roll back in AC-11491 "
68
+ );
69
+ }
63
70
$ this ->objectManagerBeforeTest = Bootstrap::getObjectManager ();
64
71
$ this ->objectManagerForTest = new ObjectManager ($ this ->objectManagerBeforeTest );
65
72
$ this ->objectManagerForTest ->getFactory ()->setObjectManager ($ this ->objectManagerForTest );
@@ -116,13 +123,6 @@ public function testState(
116
123
string $ expected ,
117
124
TestCase $ test
118
125
): void {
119
- if (8 == PHP_MAJOR_VERSION && PHP_MINOR_VERSION < 4 ) {
120
- $ test ->markTestSkipped (
121
- "This test isn't compatible with PHP 8.3 versions less than PHP 8.3.4 because of "
122
- . "bug in garbage collector. https://github.com/php/php-src/issues/13569 "
123
- . " will roll back in AC-11491 "
124
- );
125
- }
126
126
if (array_key_exists (1 , $ authInfo )) {
127
127
$ authInfo1 = $ authInfo [0 ];
128
128
$ authInfo2 = $ authInfo [1 ];
You can’t perform that action at this time.
0 commit comments