Skip to content

Commit 3888c94

Browse files
committed
AC-14658::[Integration Tests] Composer Build Failure - 2.4.9-alpha1
1 parent 54c59cf commit 3888c94

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dev/tests/integration/testsuite/Magento/Framework/Session/SessionManagerTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)