Adding ConfigCacheLoaderTest

This commit is contained in:
Philipp Holzer 2019-02-10 13:09:38 +01:00
commit 199ceeadbf
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 241 additions and 9 deletions

View file

@ -0,0 +1,13 @@
<?php
/**
* A test .htconfig file
*/
$db_host = 'testhost';
$db_user = 'testuser';
$db_pass = 'testpw';
$db_data = 'testdb';
$pidfile = '/var/run/friendica.pid';
$default_timezone = 'Europe/Berlin';
$lang = 'fr';

View file

@ -0,0 +1,27 @@
<?php
/**
* A test file for local configuration
*
*/
return [
'database' => [
'hostname' => 'testhost',
'username' => 'testuser',
'password' => 'testpw',
'database' => 'testdb',
'charset' => 'utf8mb4',
],
'config' => [
'admin_email' => 'admin@test.it',
'sitename' => 'Friendica Social Network',
'register_policy' => \Friendica\Module\Register::OPEN,
'register_text' => '',
],
'system' => [
'default_timezone' => 'UTC',
'language' => 'en',
],
];

View file

@ -0,0 +1,16 @@
<?php
/**
* A test local ini file
*/
return <<<INI
[database]
hostname = testhost
username = testuser
password = testpw
database = testdb
[config]
admin_email = admin@test.it
INI;