aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-01-10 08:32:22 +0000
committerbrunoais <brunoaiss@gmail.com>2015-01-10 08:32:22 +0000
commit349aaab6acd1188298cc06e12d389e90871aafd9 (patch)
tree716ed3beb00547fb2dbba01816f8693b9387ca5e /tests/notification
parent[ticket/13146] Last missing phpbb_mock_event_dispatcher() (diff)
downloadphpbb-349aaab6acd1188298cc06e12d389e90871aafd9.tar.gz
phpbb-349aaab6acd1188298cc06e12d389e90871aafd9.tar.bz2
phpbb-349aaab6acd1188298cc06e12d389e90871aafd9.zip
[ticket/13146] Even more missing phpbb_mock_event_dispatcher()
PHPBB3-13146
Diffstat (limited to 'tests/notification')
-rw-r--r--tests/notification/submit_post_base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/notification/submit_post_base.php b/tests/notification/submit_post_base.php
index 684dd99280..6ab4492de0 100644
--- a/tests/notification/submit_post_base.php
+++ b/tests/notification/submit_post_base.php
@@ -100,7 +100,8 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
// Container
$phpbb_container = new phpbb_mock_container_builder();
- $phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $config, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE));
+ $phpbb_dispatcher = new phpbb_mock_event_dispatcher();
+ $phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $config, $phpbb_dispatcher, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE));
$user_loader = new \phpbb\user_loader($db, $phpbb_root_path, $phpEx, USERS_TABLE);