Add additional config info to unit tests

This commit is contained in:
Dmitriy Simushev 2012-09-13 14:56:10 +00:00
parent ce82496013
commit 1a963cff00
3 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/database.php'; require_once dirname(__FILE__) . '/../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../database_config.php'; require_once dirname(__FILE__) . '/../config.php';
/** /**
* Test class for Database. * Test class for Database.

View File

@ -2,7 +2,7 @@
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/settings.php'; require_once dirname(__FILE__) . '/../../../../webim/libs/classes/settings.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/database.php'; require_once dirname(__FILE__) . '/../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../database_config.php'; require_once dirname(__FILE__) . '/../config.php';
/** /**
* Test class for Settings. * Test class for Settings.

View File

@ -1,12 +1,13 @@
<?php <?php
/** /**
* Database parameters
*
* WARNING: Do not use the same values as in the mibew config file! * WARNING: Do not use the same values as in the mibew config file!
* Tests may truncate databses they use and all data will be lost! * Tests may truncate databses they use and all data will be lost!
* *
* Use at least default $tables prefix * Use at least default $tables prefix
*/ */
$db_host = ""; $db_host = "";
$db_user = ""; $db_user = "";
$db_pass = ""; $db_pass = "";
@ -17,4 +18,11 @@ $db_encoding = "utf8";
$force_charset_in_connection = true; $force_charset_in_connection = true;
$use_persistent_connection = false; $use_persistent_connection = false;
/*
* Locales
*/
$home_locale = "en"; /* native name will be used in this locale */
$default_locale = "en"; /* if user does not provide known lang */
?> ?>