1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[ticket/16741] Test fixes

PHPBB3-16741
This commit is contained in:
Tristan Darricau
2021-11-09 02:49:56 +01:00
parent 6ce708539b
commit b266ebbcef
17 changed files with 154 additions and 69 deletions

View File

@@ -19,7 +19,10 @@ class manager_test extends phpbb_database_test_case
/** @var \phpbb\db\driver\driver_interface */
protected $db;
/** @var \phpbb\db\tools\tools */
/** @var \Doctrine\DBAL\Connection */
protected $db_doctrine;
/** @var \phpbb\db\tools\doctrine */
protected $db_tools;
/** @var \phpbb\log\log_interface */
@@ -46,8 +49,9 @@ class manager_test extends phpbb_database_test_case
global $phpbb_root_path, $phpEx, $table_prefix;
$this->db = $this->new_dbal();
$this->db_tools = $this->getMockBuilder('\phpbb\db\tools\tools')
->setConstructorArgs([$this->db])
$this->db_doctrine = $this->new_doctrine_dbal();
$this->db_tools = $this->getMockBuilder('\phpbb\db\tools\doctrine')
->setConstructorArgs([$this->db_doctrine])
->getMock();
$this->config_text = new \phpbb\config\db_text($this->db, $table_prefix . 'config_text');
$this->table_prefix = $table_prefix;