diff options
author | Matt Friedman <maf675@gmail.com> | 2015-10-13 23:40:52 -0700 |
---|---|---|
committer | Matt Friedman <maf675@gmail.com> | 2015-10-13 23:40:52 -0700 |
commit | b64a37d451132dcf7ef5fc3d6e700a6fb6decd90 (patch) | |
tree | 8432ace2597886cfbf20bcfdd27e39cd17c1f6b1 /tests/notification/submit_post_base.php | |
parent | 03cb2a7b0c5a3756522c27d708bdaf0bfa771706 (diff) | |
download | forums-b64a37d451132dcf7ef5fc3d6e700a6fb6decd90.tar forums-b64a37d451132dcf7ef5fc3d6e700a6fb6decd90.tar.gz forums-b64a37d451132dcf7ef5fc3d6e700a6fb6decd90.tar.bz2 forums-b64a37d451132dcf7ef5fc3d6e700a6fb6decd90.tar.xz forums-b64a37d451132dcf7ef5fc3d6e700a6fb6decd90.zip |
[ticket/14237] Use $language class for notifications
PHPBB3-14237
Diffstat (limited to 'tests/notification/submit_post_base.php')
-rw-r--r-- | tests/notification/submit_post_base.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/notification/submit_post_base.php b/tests/notification/submit_post_base.php index 72b25abf0a..14ca4499d2 100644 --- a/tests/notification/submit_post_base.php +++ b/tests/notification/submit_post_base.php @@ -54,7 +54,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c { parent::setUp(); - global $auth, $cache, $config, $db, $phpbb_container, $phpbb_dispatcher, $user, $request, $phpEx, $phpbb_root_path, $user_loader; + global $auth, $cache, $config, $db, $phpbb_container, $phpbb_dispatcher, $lang, $user, $request, $phpEx, $phpbb_root_path, $user_loader; // Database $this->db = $this->new_dbal(); @@ -91,9 +91,12 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c // Event dispatcher $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + // Language + $lang = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)); + // User $user = $this->getMock('\phpbb\user', array(), array( - new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)), + $lang, '\phpbb\datetime' )); $user->ip = ''; @@ -117,6 +120,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c $loader->load('services_notification.yml'); $phpbb_container->set('user_loader', $user_loader); $phpbb_container->set('user', $user); + $phpbb_container->set('language', $lang); $phpbb_container->set('config', $config); $phpbb_container->set('dbal.conn', $db); $phpbb_container->set('auth', $auth); @@ -146,7 +150,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c // Notification Manager $phpbb_notifications = new \phpbb\notification\manager($notification_types_array, $notification_methods_array, - $phpbb_container, $user_loader, $phpbb_dispatcher, $db, $cache, $user, + $phpbb_container, $user_loader, $phpbb_dispatcher, $db, $cache, $lang, $user, NOTIFICATION_TYPES_TABLE, USER_NOTIFICATIONS_TABLE); $phpbb_container->set('notification_manager', $phpbb_notifications); } |