[ticket/16977] Fix broken tests

PHPBB3-16977
This commit is contained in:
lionel-rowe 2022-04-03 20:46:44 +01:00
parent 87c1e631ef
commit e53102fead
5 changed files with 15 additions and 15 deletions

View file

@ -105,7 +105,7 @@ class phpbb_console_command_cron_list_test extends phpbb_test_case
$mock_container = new phpbb_mock_container_builder();
$mock_container->set('cron.task_collection', []);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $pathEx);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $pathEx, null);
$this->cron_manager->load_tasks($tasks);
}

View file

@ -81,7 +81,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
$mock_container = new phpbb_mock_container_builder();
$mock_container->set('cron.task_collection', []);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx, null);
$this->cron_manager->load_tasks($tasks);
$this->assertSame('0', $config['cron_lock']);
@ -160,7 +160,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
$mock_container = new phpbb_mock_container_builder();
$mock_container->set('cron.task_collection', []);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx, null);
$this->cron_manager->load_tasks($tasks);
$command_tester = $this->get_command_tester();
@ -208,7 +208,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
$mock_container = new phpbb_mock_container_builder();
$mock_container->set('cron.task_collection', []);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx);
$this->cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx, null);
$this->cron_manager->load_tasks($tasks);
$command_tester = $this->get_command_tester();

View file

@ -212,7 +212,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -275,7 +275,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -338,7 +338,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -401,7 +401,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -464,7 +464,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -527,7 +527,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -587,7 +587,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -650,7 +650,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,
@ -701,7 +701,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$this->auth,
$this->cache,
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, $this->root_path, 'php', null),
$this->db,
$this->dispatcher,
$this->language,

View file

@ -105,7 +105,7 @@ class phpbb_cron_manager_test extends \phpbb_test_case
$mock_container = new phpbb_mock_container_builder();
$mock_container->set('cron.task_collection', []);
$cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx);
$cron_manager = new \phpbb\cron\manager($mock_container, $routing_helper, $phpbb_root_path, $phpEx, null);
$cron_manager->load_tasks($tasks);
return $cron_manager;

View file

@ -70,7 +70,7 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case
new \phpbb\auth\auth(),
new \phpbb\cache\driver\dummy(),
$this->config,
new \phpbb\cron\manager($mock_container, $this->routing_helper, '', 'php'),
new \phpbb\cron\manager($mock_container, $this->routing_helper, '', 'php', null),
$db,
new phpbb_mock_event_dispatcher(),
new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)),