Adding ConfigCacheLoaderTest
This commit is contained in:
parent
2a42f8dded
commit
199ceeadbf
6 changed files with 241 additions and 9 deletions
13
tests/datasets/config/.htconfig.test.php
Normal file
13
tests/datasets/config/.htconfig.test.php
Normal 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';
|
27
tests/datasets/config/local.config.php
Normal file
27
tests/datasets/config/local.config.php
Normal 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',
|
||||
],
|
||||
];
|
16
tests/datasets/config/local.ini.php
Normal file
16
tests/datasets/config/local.ini.php
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue