Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 0d0b5c0

Browse files
jissereitsmamage2pratik
authored andcommitted
Add copying of config-global.php
1 parent 8fd89cf commit 0d0b5c0

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.php';
570+
copy($this->globalConfigFile, $targetFile);
571+
}
560572

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

0 commit comments

Comments
 (0)