diff --git a/tests/notification/notification_method_webpush_test.php b/tests/notification/notification_method_webpush_test.php index e52bf9a7ac..7967a0f7c6 100644 --- a/tests/notification/notification_method_webpush_test.php +++ b/tests/notification/notification_method_webpush_test.php @@ -171,6 +171,9 @@ class notification_method_webpush_test extends phpbb_tests_notification_base $ban_manager = new \phpbb\ban\manager($collection, new \phpbb\cache\driver\dummy(), $this->db, $this->language, $this->log, $user, 'phpbb_bans', 'phpbb_users'); $phpbb_container->set('ban.manager', $ban_manager); + $messenger_method_collection = new \phpbb\di\service_collection($phpbb_container); + $phpbb_container->set('messenger.method_collection', $messenger_method_collection); + $this->notification_method_webpush = new \phpbb\notification\method\webpush( $phpbb_container->get('config'), $phpbb_container->get('dbal.conn'), @@ -180,7 +183,7 @@ class notification_method_webpush_test extends phpbb_tests_notification_base $phpbb_root_path, $phpEx, $phpbb_container->getParameter('tables.notification_push'), - $phpbb_container->getParameter('tables.push_subscriptions'), + $phpbb_container->getParameter('tables.push_subscriptions') ); $phpbb_container->set('notification.method.webpush', $this->notification_method_webpush);