2019-08-21 18:13:00 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (getenv('TYPO3_ADDITIONAL_CONFIGURATION')) {
|
|
|
|
require_once getenv('TYPO3_ADDITIONAL_CONFIGURATION');
|
|
|
|
}
|
|
|
|
|
|
|
|
$appContext = \TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext();
|
|
|
|
if ((string) $appContext === 'Testing/Acceptance') {
|
|
|
|
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule(
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS'],
|
|
|
|
[
|
|
|
|
'SYS' => [
|
|
|
|
'trustedHostsPattern' => 'localhost:8080',
|
|
|
|
],
|
2019-08-27 08:58:34 +02:00
|
|
|
'MAIL' => [
|
|
|
|
'transport' => 'smtp',
|
|
|
|
'transport_smtp_server' => '127.0.0.1:1025',
|
|
|
|
],
|
2019-08-21 18:13:00 +02:00
|
|
|
'DB' => [
|
|
|
|
'Connections' => [
|
|
|
|
'Default' => [
|
|
|
|
'dbname' => 'own_workshopgitlabacceptance_testing',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
if ((string) $appContext === 'Testing/Acceptance' && getenv('CI') === 'true') {
|
|
|
|
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule(
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS'],
|
|
|
|
[
|
|
|
|
'SYS' => [
|
|
|
|
'trustedHostsPattern' => getenv('TESTING_DOMAIN'),
|
|
|
|
],
|
2019-08-27 08:58:34 +02:00
|
|
|
'MAIL' => [
|
|
|
|
'transport' => 'smtp',
|
|
|
|
'transport_smtp_server' => 'mailhog__mailhog:1025',
|
|
|
|
],
|
2019-08-21 18:13:00 +02:00
|
|
|
'DB' => [
|
|
|
|
'Connections' => [
|
|
|
|
'Default' => [
|
|
|
|
'dbname' => 'dev',
|
|
|
|
'password' => 'dev',
|
|
|
|
'user' => 'dev',
|
|
|
|
'host' => 'mysql',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|