From 5ef7510fb3c7dac8ef6e74c37c97e0efb59a4799 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Mon, 7 Jul 2014 12:50:18 -0700 Subject: [PATCH] [ticket/12812] Remove unused global $db from tests PHPBB3-12812 --- tests/dbal/migrator_tool_config_text_test.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/dbal/migrator_tool_config_text_test.php b/tests/dbal/migrator_tool_config_text_test.php index f832105e00..b271c2d62e 100644 --- a/tests/dbal/migrator_tool_config_text_test.php +++ b/tests/dbal/migrator_tool_config_text_test.php @@ -20,11 +20,9 @@ class phpbb_dbal_migrator_tool_config_text_test extends phpbb_database_test_case public function setup() { - global $db; - parent::setup(); - $db = $this->db = $this->new_dbal(); + $this->db = $this->new_dbal(); $this->config_text = new \phpbb\config\db_text($this->db, 'phpbb_config_text'); $this->tool = new \phpbb\db\migration\tool\config_text($this->config_text);