Skip to content

Commit a28dbc4

Browse files
authored
Merge branch '2.4.9-alpha1-develop' into cia-2.4.9-alpha1-develop-bugfix-05222025
2 parents b535da7 + 87a9e7c commit a28dbc4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2012 Adobe
4+
* All rights reserved.
55
*/
66
// @codingStandardsIgnoreStart
77
namespace {
@@ -294,6 +294,12 @@ public function testConstructor(string $saveMethod): void
294294
global $mockPHPFunctions;
295295
$mockPHPFunctions = true;
296296

297+
if ($this->isComposerBaseInstallation()) {
298+
$this->markTestSkipped(
299+
'Skipping: Composer-based installation, php_ini global method does not invoke the session value.'
300+
);
301+
}
302+
297303
$deploymentConfigMock = $this->createMock(DeploymentConfig::class);
298304
$deploymentConfigMock->method('get')
299305
->willReturnCallback(function ($configPath) use ($saveMethod) {
@@ -357,5 +363,11 @@ private function initializeModel(): void
357363
]
358364
);
359365
}
366+
367+
private function isComposerBaseInstallation(): bool
368+
{
369+
$isComposerBased = file_exists(BP . '/vendor/magento/magento2-base');
370+
return (bool)$isComposerBased;
371+
}
360372
}
361373
}

0 commit comments

Comments
 (0)