1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +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,6 +102,12 @@ class phpbb_cron_manager_test extends \phpbb_test_case
$phpEx
);
return new \phpbb\cron\manager($tasks, $routing_helper, $phpbb_root_path, $phpEx);
$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->load_tasks($tasks);
return $cron_manager;
}
}