1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 19:24:01 +02:00

Merge branch 'ticket/16891' into ticket/16891-master

This commit is contained in:
Marc Alexander
2022-01-31 21:48:53 +01:00
19 changed files with 80 additions and 25 deletions

View File

@@ -42,13 +42,14 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
));
$this->db = $this->new_dbal();
$this->db_doctrine = $this->new_doctrine_dbal();
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
$factory = new \phpbb\db\tools\factory();
$this->db_tools = $factory->get($this->db_doctrine);
$finder_factory = $this->createMock('\phpbb\finder\factory');
$this->phpbb_root_path = __DIR__ . '/';
$this->phpEx = 'php';
$this->cache = new \phpbb\cache\service(new phpbb_mock_cache(), $this->config, $this->db, $this->phpbb_root_path, $this->phpEx);
$this->cache = new \phpbb\cache\service(new phpbb_mock_cache(), $this->config, $this->db, $phpbb_dispatcher, $this->phpbb_root_path, $this->phpEx);
$this->table_prefix = 'phpbb_';
@@ -72,7 +73,7 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
$cache_path,
null,
$loader,
new \phpbb\event\dispatcher(),
$phpbb_dispatcher,
array(
'cache' => false,
'debug' => false,