1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +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

@@ -19,6 +19,7 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
protected $cache;
protected $config;
protected $db;
protected $db_doctrine;
protected $db_tools;
protected $table_prefix;
protected $phpbb_root_path;
@@ -40,8 +41,9 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
'version' => '3.1.0',
));
$this->db = $this->new_dbal();
$this->db_doctrine = $this->new_doctrine_dbal();
$factory = new \phpbb\db\tools\factory();
$this->db_tools = $factory->get($this->db);
$this->db_tools = $factory->get($this->db_doctrine);
$finder_factory = $this->createMock('\phpbb\finder\factory');
$this->phpbb_root_path = __DIR__ . '/';
$this->phpEx = 'php';