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 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2012 Adobe
4
+ * All rights reserved .
5
5
*/
6
6
// @codingStandardsIgnoreStart
7
7
namespace {
@@ -294,6 +294,12 @@ public function testConstructor(string $saveMethod): void
294
294
global $ mockPHPFunctions ;
295
295
$ mockPHPFunctions = true ;
296
296
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
+
297
303
$ deploymentConfigMock = $ this ->createMock (DeploymentConfig::class);
298
304
$ deploymentConfigMock ->method ('get ' )
299
305
->willReturnCallback (function ($ configPath ) use ($ saveMethod ) {
@@ -357,5 +363,11 @@ private function initializeModel(): void
357
363
]
358
364
);
359
365
}
366
+
367
+ private function isComposerBaseInstallation (): bool
368
+ {
369
+ $ isComposerBased = file_exists (BP . '/vendor/magento/magento2-base ' );
370
+ return (bool )$ isComposerBased ;
371
+ }
360
372
}
361
373
}
You can’t perform that action at this time.
0 commit comments