mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 21:54:00 +02:00
[ticket/16741] Test fixes
PHPBB3-16741
This commit is contained in:
@@ -152,9 +152,10 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
|
||||
|
||||
$config = new \phpbb\config\config(array('version' => PHPBB_VERSION));
|
||||
$db = $this->new_dbal();
|
||||
$db_doctrine = $this->new_doctrine_dbal();
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$finder_factory = new \phpbb\finder\factory(null, false, $phpbb_root_path, $php_ext);
|
||||
$db_tools = $factory->get($db);
|
||||
$db_tools = $factory->get($db_doctrine);
|
||||
$table_prefix = 'phpbb_';
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
|
@@ -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';
|
||||
|
Reference in New Issue
Block a user