1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-20 15:31:42 +02:00

Merge pull request #6273 from CHItA/ticket/16741

[ticket/16741] Database tools to use Doctrine
This commit is contained in:
Máté Bartus
2022-01-17 20:08:50 +01:00
committed by GitHub
50 changed files with 2674 additions and 3629 deletions

View File

@@ -30,6 +30,9 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
/** @var \phpbb\db\driver\driver_interface */
protected $db;
/** @var \Doctrine\DBAL\Connection */
protected $doctrine_db;
/** @var \phpbb\db\tools\tools_interface */
protected $db_tools;
@@ -49,8 +52,9 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
parent::setUp();
$this->db = $this->new_dbal();
$this->doctrine_db = $this->new_doctrine_dbal();
$factory = new \phpbb\db\tools\factory();
$this->db_tools = $factory->get($this->db);
$this->db_tools = $factory->get($this->doctrine_db);
$this->config = new \phpbb\config\db($this->db, new phpbb_mock_cache, 'phpbb_config');