From 71ad3947de85ba96d801e36062b520b494d4cc89 Mon Sep 17 00:00:00 2001 From: David J Eddy Date: Wed, 30 Mar 2016 10:01:17 -0400 Subject: [PATCH] Update index-test.php Added ./config/dynamic to index-test to allow more parity between dev and testing application configurations. --- index-test.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index-test.php b/index-test.php index cac00e9276..a5a6d4be39 100644 --- a/index-test.php +++ b/index-test.php @@ -17,6 +17,10 @@ defined('YII_ENV') or define('YII_ENV', 'test'); require(__DIR__ . '/protected/vendor/autoload.php'); require(__DIR__ . '/protected/vendor/yiisoft/yii2/Yii.php'); -$config = require(__DIR__ . '/protected/humhub/tests/codeception/config/acceptance.php'); +$config = yii\helpers\ArrayHelper::merge( + require(__DIR__ . '/protected/humhub/tests/codeception/config/acceptance.php'), + // add more configurations here + (is_readable(__DIR__ . '/protected/config/dynamic.php')) ? require(__DIR__ . '/protected/config/dynamic.php') : [] +); (new humhub\components\Application($config))->run();