aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-24 12:06:45 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-02-07 14:41:39 +0100
commit37ae99c75d388221489aa1069078d92eca413741 (patch)
treec94d5cf5b816e7cfc5bf3e698f63b2b418629268 /tests/extension
parent4ea90ca44d6d274f1ff6e6e3b4821f9e8cd1e9da (diff)
downloadforums-37ae99c75d388221489aa1069078d92eca413741.tar
forums-37ae99c75d388221489aa1069078d92eca413741.tar.gz
forums-37ae99c75d388221489aa1069078d92eca413741.tar.bz2
forums-37ae99c75d388221489aa1069078d92eca413741.tar.xz
forums-37ae99c75d388221489aa1069078d92eca413741.zip
[ticket/10748] Replace direct creations of tools();
PHPBB3-10748
Diffstat (limited to 'tests/extension')
-rw-r--r--tests/extension/manager_test.php3
-rw-r--r--tests/extension/metadata_manager_test.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/extension/manager_test.php b/tests/extension/manager_test.php
index c737d33f95..0126216701 100644
--- a/tests/extension/manager_test.php
+++ b/tests/extension/manager_test.php
@@ -150,7 +150,8 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
$config = new \phpbb\config\config(array('version' => PHPBB_VERSION));
$db = $this->new_dbal();
- $db_tools = new \phpbb\db\tools\tools($db);
+ $factory = new \phpbb\db\tools\factory();
+ $db_tools = $factory->get($db);
$phpbb_root_path = __DIR__ . './../../phpBB/';
$php_ext = 'php';
$table_prefix = 'phpbb_';
diff --git a/tests/extension/metadata_manager_test.php b/tests/extension/metadata_manager_test.php
index bd7acf12f9..8514ed3dbd 100644
--- a/tests/extension/metadata_manager_test.php
+++ b/tests/extension/metadata_manager_test.php
@@ -41,7 +41,8 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
'version' => '3.1.0',
));
$this->db = $this->new_dbal();
- $this->db_tools = new \phpbb\db\tools\tools($this->db);
+ $factory = new \phpbb\db\tools\factory();
+ $this->db_tools = $factory->get($this->db);
$this->phpbb_root_path = dirname(__FILE__) . '/';
$this->phpEx = 'php';
$this->user = new \phpbb\user('\phpbb\datetime');