From: Philipp Date: Sun, 12 Feb 2023 13:38:43 +0000 (+0100) Subject: use own local.config.php for CI X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3edc5553c6e39b8258e522699defe90c4d213ca5;p=friendica.git use own local.config.php for CI --- diff --git a/mods/local.config.ci.php b/mods/local.config.ci.php new file mode 100644 index 0000000000..fac4d80b9f --- /dev/null +++ b/mods/local.config.ci.php @@ -0,0 +1,47 @@ + [ + 'hostname' => 'localhost', + 'username' => 'friendica', + 'password' => 'friendica', + 'database' => 'friendica', + 'charset' => 'utf8mb4', + ], + + // **************************************************************** + // The configuration below will be overruled by the admin panel. + // Changes made below will only have an effect if the database does + // not contain any configuration for the friendica system. + // **************************************************************** + + 'config' => [ + 'hostname' => 'friendica.local', + 'admin_email' => 'admin@friendica.local', + 'sitename' => 'Friendica Social Network', + 'register_policy' => \Friendica\Module\Register::OPEN, + 'register_text' => '', + ], + 'system' => [ + 'default_timezone' => 'UTC', + 'language' => 'en', + 'ssl_policy' => \Friendica\App\BaseURL::SSL_POLICY_SELFSIGN, + 'url' => 'https://friendica.local', + 'urlpath' => '', + // don't start unexpected worker.php processes during test! + 'worker_dont_fork' => true, + ], +]; diff --git a/tests/Util/VFSTrait.php b/tests/Util/VFSTrait.php index 3a203588cf..a98b7925de 100644 --- a/tests/Util/VFSTrait.php +++ b/tests/Util/VFSTrait.php @@ -54,7 +54,7 @@ trait VFSTrait $this->setConfigFile('static' . DIRECTORY_SEPARATOR . 'defaults.config.php', true); $this->setConfigFile('static' . DIRECTORY_SEPARATOR . 'settings.config.php', true); $this->setConfigFile( - 'mods' . DIRECTORY_SEPARATOR . 'local.config.vagrant.php', + 'mods' . DIRECTORY_SEPARATOR . 'local.config.ci.php', false, 'local.config.php' ); }