Changed Base URL for Unit Tests

This commit is contained in:
Lucas Bartholemy 2023-12-13 20:59:18 +01:00
parent 7e4d844ab3
commit f81f901c26

View File

@ -17,22 +17,29 @@ $testConfig = [
'cookieValidationKey' => 'test'
],
'user' => [
'enableSession' => false
'enableSession' => false
],
'assetManager' => [
'basePath' => '@root/assets/'
]
],
],
'params' => [
'fixed-settings' => [
'base' => [
'baseUrl' => 'http://localhost'
]
]
]
];
defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(dirname(__DIR__)))));
return yii\helpers\ArrayHelper::merge(
// Common Config
require(YII_APP_BASE_PATH . '/humhub/config/common.php'),
// Web Config
require(YII_APP_BASE_PATH . '/humhub/config/web.php'),
// Test Common Config
require(__DIR__ . '/config.php'),
// Unit Test Config
$testConfig
// Common Config
require(YII_APP_BASE_PATH . '/humhub/config/common.php'),
// Web Config
require(YII_APP_BASE_PATH . '/humhub/config/web.php'),
// Test Common Config
require(__DIR__ . '/config.php'),
// Unit Test Config
$testConfig
);