aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal
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/dbal
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/dbal')
-rw-r--r--tests/dbal/auto_increment_test.php3
-rw-r--r--tests/dbal/db_tools_test.php3
-rw-r--r--tests/dbal/migrator_test.php3
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/dbal/auto_increment_test.php b/tests/dbal/auto_increment_test.php
index 057bcb5bac..39eb6835ff 100644
--- a/tests/dbal/auto_increment_test.php
+++ b/tests/dbal/auto_increment_test.php
@@ -30,7 +30,8 @@ class phpbb_dbal_auto_increment_test extends phpbb_database_test_case
parent::setUp();
$this->db = $this->new_dbal();
- $this->tools = new \phpbb\db\tools\tools($this->db);
+ $factory = new \phpbb\db\tools\factory();
+ $this->tools = $factory->get($this->db);
$this->table_data = array(
'COLUMNS' => array(
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php
index c09b34f55c..aa0b6ccf48 100644
--- a/tests/dbal/db_tools_test.php
+++ b/tests/dbal/db_tools_test.php
@@ -32,7 +32,8 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
parent::setUp();
$this->db = $this->new_dbal();
- $this->tools = new \phpbb\db\tools\tools($this->db);
+ $factory = new \phpbb\db\tools\factory();
+ $this->tools = $factory->get($this->db);
$this->table_data = array(
'COLUMNS' => array(
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php
index 9b8383fc88..6416a2fcf7 100644
--- a/tests/dbal/migrator_test.php
+++ b/tests/dbal/migrator_test.php
@@ -38,7 +38,8 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
parent::setUp();
$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->config = new \phpbb\config\db($this->db, new phpbb_mock_cache, 'phpbb_config');