1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +02:00

[feature/dbal-tests] Load phpbb-schema after creating the connection to the database

This commit is contained in:
Joas Schilling
2010-03-26 17:37:01 +01:00
parent af654814f6
commit a7581085e0
2 changed files with 53 additions and 3 deletions

View File

@@ -23,13 +23,16 @@ class phpbb_test_case_helpers
if (!file_exists('test_config.php'))
{
trigger_error("You have to create a test_config.php like this:
<?php
\"<?php
$dbms = 'mysqli';
$dbhost = 'localhost';
$dbport = '';
$dbname = 'database';
$dbuser = 'user';
$dbpasswd = 'password';", E_USER_ERROR);
$dbpasswd = 'password';
\"
NOTE: The database is dropped and recreated with the phpbb-db-schema! Do NOT specify a database with important data.", E_USER_ERROR);
}
include('test_config.php');