|
@@ 91-98 (lines=8) @@
|
| 88 |
|
$configPath = $this->testRootDir . '/app/config'; |
| 89 |
|
foreach ($this->packages as $packageFile => $package) { |
| 90 |
|
$path = $package['path']; |
| 91 |
|
if ($configFiles = glob($path . '/phwoolcon-package/config/*.php')) { |
| 92 |
|
foreach ($configFiles as $source) { |
| 93 |
|
$configFile = basename($source); |
| 94 |
|
$destination = $configPath . '/' . $configFile; |
| 95 |
|
is_file($destination) and unlink($destination); |
| 96 |
|
symlinkRelative($source, $destination); |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
if ($overrides = glob($path . '/phwoolcon-package/config/override-*/*.php')) { |
| 101 |
|
foreach ($overrides as $override) { |
|
@@ 155-163 (lines=9) @@
|
| 152 |
|
$migrationPath = $this->testRootDir . '/bin/migrations/'; |
| 153 |
|
foreach ($this->packages as $packageFile => $package) { |
| 154 |
|
$path = $package['path']; |
| 155 |
|
if ($items = glob($path . '/phwoolcon-package/migrations/*')) { |
| 156 |
|
// @codeCoverageIgnoreStart |
| 157 |
|
foreach ($items as $source) { |
| 158 |
|
$destination = $migrationPath . basename($source); |
| 159 |
|
is_file($destination) and unlink($destination); |
| 160 |
|
symlinkRelative($source, $destination); |
| 161 |
|
} |
| 162 |
|
// @codeCoverageIgnoreEnd |
| 163 |
|
} |
| 164 |
|
} |
| 165 |
|
$this->message(' <info>[ OK ]</info>'); |
| 166 |
|
} |