mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/17176] Clean up database code to prevent test issues
PHPBB3-17176
This commit is contained in:
@@ -303,8 +303,9 @@ abstract class phpbb_database_test_case extends TestCase
|
||||
{
|
||||
$config = $this->get_database_config();
|
||||
|
||||
/** @var \phpbb\db\driver\driver_interface $db */
|
||||
$db = new $config['dbms']();
|
||||
$db->sql_connect($config['dbhost'], $config['dbuser'], $config['dbpasswd'], $config['dbname'], $config['dbport']);
|
||||
$db->sql_connect($config['dbhost'], $config['dbuser'], $config['dbpasswd'], $config['dbname'], $config['dbport'], false, true);
|
||||
|
||||
$this->db_connections[] = $db;
|
||||
|
||||
|
Reference in New Issue
Block a user