Skip to content

Commit

Permalink
support v5
Browse files Browse the repository at this point in the history
  • Loading branch information
aozisik committed May 10, 2024
1 parent 6f75689 commit b932d0b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,16 @@ protected function resolveApplicationConfiguration($app)
];

foreach ($configs as $config) {

$path = __DIR__ . "/../vendor/statamic/cms/config/{$config}.php";

if (!file_exists($path)) {
continue;
}

$app['config']->set(
"statamic.$config",
require(__DIR__ . "/../vendor/statamic/cms/config/{$config}.php")
require($path)
);
}

Expand All @@ -111,7 +118,7 @@ protected function resolveApplicationConfiguration($app)

protected function initializeDirectory($directory)
{
if (! file_exists($directory)) {
if (!file_exists($directory)) {
mkdir($directory);
}
}
Expand Down

0 comments on commit b932d0b

Please sign in to comment.