From 8407fee96df4a839f46bb06e082a0b9fc922662c Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 7 Aug 2019 10:59:05 +0200 Subject: [PATCH] Ensured generated installation config is not loaded on test envs --- config/config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config.php b/config/config.php index f09bb9f6..03b949a9 100644 --- a/config/config.php +++ b/config/config.php @@ -22,10 +22,9 @@ return (new ConfigAggregator\ConfigAggregator([ Rest\ConfigProvider::class, EventDispatcher\ConfigProvider::class, new ConfigAggregator\PhpFileProvider('config/autoload/{{,*.}global,{,*.}local}.php'), - new ConfigAggregator\ZendConfigProvider('config/params/{generated_config.php,*.config.{php,json}}'), env('APP_ENV') === 'test' ? new ConfigAggregator\PhpFileProvider('config/test/*.global.php') - : new ConfigAggregator\ArrayProvider([]), + : new ConfigAggregator\ZendConfigProvider('config/params/{generated_config.php,*.config.{php,json}}'), ], 'data/cache/app_config.php', [ Core\ConfigPostProcessor::class, ]))->getMergedConfig();