aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_database_test_connection_manager.php
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-10-18 22:47:04 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-10-22 21:29:52 +0200
commit597297b169e2ae14684ad1f40c8e083be22b241d (patch)
tree41a12be0ddf52aa186e23dc75c05b4ae11d1d9da /tests/test_framework/phpbb_database_test_connection_manager.php
parentcc1a96a8045b6abe5b1234afb045912d53669fee (diff)
downloadforums-597297b169e2ae14684ad1f40c8e083be22b241d.tar
forums-597297b169e2ae14684ad1f40c8e083be22b241d.tar.gz
forums-597297b169e2ae14684ad1f40c8e083be22b241d.tar.bz2
forums-597297b169e2ae14684ad1f40c8e083be22b241d.tar.xz
forums-597297b169e2ae14684ad1f40c8e083be22b241d.zip
[ticket/14044] Deduplicate the installers
PHPBB3-14044
Diffstat (limited to 'tests/test_framework/phpbb_database_test_connection_manager.php')
-rw-r--r--tests/test_framework/phpbb_database_test_connection_manager.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_framework/phpbb_database_test_connection_manager.php b/tests/test_framework/phpbb_database_test_connection_manager.php
index 5136af5ad1..fa50d89a70 100644
--- a/tests/test_framework/phpbb_database_test_connection_manager.php
+++ b/tests/test_framework/phpbb_database_test_connection_manager.php
@@ -11,7 +11,6 @@
*
*/
-require_once dirname(__FILE__) . '/../../phpBB/includes/functions_install.php';
require_once dirname(__FILE__) . '/phpbb_database_connection_odbc_pdo_wrapper.php';
class phpbb_database_test_connection_manager
@@ -344,10 +343,13 @@ class phpbb_database_test_connection_manager
if (file_exists($filename))
{
+ global $phpbb_root_path;
+
$queries = file_get_contents($filename);
- $sql = phpbb_remove_comments($queries);
- $sql = split_sql_file($sql, $this->dbms['DELIM']);
+ $db_helper = new \phpbb\install\helper\database(new \phpbb\filesystem\filesystem(), $phpbb_root_path);
+ $sql = $db_helper->remove_comments($queries);
+ $sql = $db_helper->split_sql_file($sql, $this->dbms['DELIM']);
foreach ($sql as $query)
{