mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/12812] Remove unused global $db from tests
PHPBB3-12812
This commit is contained in:
parent
5527044a00
commit
5ef7510fb3
1 changed files with 1 additions and 3 deletions
|
@ -20,11 +20,9 @@ class phpbb_dbal_migrator_tool_config_text_test extends phpbb_database_test_case
|
||||||
|
|
||||||
public function setup()
|
public function setup()
|
||||||
{
|
{
|
||||||
global $db;
|
|
||||||
|
|
||||||
parent::setup();
|
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->config_text = new \phpbb\config\db_text($this->db, 'phpbb_config_text');
|
||||||
|
|
||||||
$this->tool = new \phpbb\db\migration\tool\config_text($this->config_text);
|
$this->tool = new \phpbb\db\migration\tool\config_text($this->config_text);
|
||||||
|
|
Loading…
Add table
Reference in a new issue