File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
dev/tests/integration/testsuite/Magento/Framework/Session Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 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
77namespace {
@@ -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}
You can’t perform that action at this time.
0 commit comments