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

[ticket/16565] Fixed cron.manager tests

PHPBB3-16565
This commit is contained in:
kasimi
2020-08-12 12:51:59 +02:00
parent fe97d19c66
commit 0daf6ccbcb
5 changed files with 71 additions and 16 deletions

View File

@@ -102,7 +102,11 @@ class phpbb_console_command_cron_list_test extends phpbb_test_case
$pathEx
);
$this->cron_manager = new \phpbb\cron\manager($tasks, $routing_helper, $phpbb_root_path, $pathEx);
$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->load_tasks($tasks);
}
public function get_command_tester()