Skip to content

Commit a92ae14

Browse files
ENGCOM-3036: [Forwardport] Allow usage of config-global.php when running Integration Tests #18201
- Merge Pull Request #18201 from mage2pratik/magento2:2.3-develop-PR-port-16361 - Merged commits: 1. 0d0b5c0 2. 81076e1 3. 421ba0b 4. c0cb405 5. 99b1ca7
2 parents 8fd89cf + 99b1ca7 commit a92ae14

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dev/tests/integration/framework/Magento/TestFramework/Application.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ public function install($cleanup)
498498
$this->_ensureDirExists($this->_initParams[$dirs][DirectoryList::VAR_DIR][DirectoryList::PATH]);
499499

500500
$this->copyAppConfigFiles();
501+
$this->copyGlobalConfigFile();
501502

502503
$installParams = $this->getInstallCliParams();
503504

@@ -557,6 +558,17 @@ private function copyAppConfigFiles()
557558
}
558559
}
559560
}
561+
562+
/**
563+
* Copies global configuration file from the tests folder (see TESTS_GLOBAL_CONFIG_FILE)
564+
*
565+
* @return void
566+
*/
567+
private function copyGlobalConfigFile()
568+
{
569+
$targetFile = $this->_configDir . '/config.local.php';
570+
copy($this->globalConfigFile, $targetFile);
571+
}
560572

561573
/**
562574
* Gets a list of CLI params for installation

0 commit comments

Comments
 (0)