File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
dev/tests/integration/testsuite/Magento/Framework/Session Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,10 @@ public function testConstructor(string $saveMethod): void
294294 global $ mockPHPFunctions ;
295295 $ mockPHPFunctions = true ;
296296
297+ if ($ this ->isComposerBaseInstallation ()) {
298+ $ this ->markTestSkipped ('Skipping: In Composer-based installations, the php_ini global method does not invoke the session value. ' );
299+ }
300+
297301 $ deploymentConfigMock = $ this ->createMock (DeploymentConfig::class);
298302 $ deploymentConfigMock ->method ('get ' )
299303 ->willReturnCallback (function ($ configPath ) use ($ saveMethod ) {
@@ -357,5 +361,11 @@ private function initializeModel(): void
357361 ]
358362 );
359363 }
364+
365+ private function isComposerBaseInstallation (): bool
366+ {
367+ $ isComposerBased = file_exists (BP . '/vendor/magento/magento2-base ' );
368+ return (bool )$ isComposerBased ;
369+ }
360370 }
361371}
You can’t perform that action at this time.
0 commit comments