diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2014-06-20 15:30:04 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2014-06-20 15:30:04 +0530 |
commit | 752b5b6628a27a1220268f3929402b3699eed0c7 (patch) | |
tree | 6462d3f2f38953535a8ba2057993aff401789ac6 /tests | |
parent | b855f5fc6a9cc761c8144ef3d21b8212871f6733 (diff) | |
download | forums-752b5b6628a27a1220268f3929402b3699eed0c7.tar forums-752b5b6628a27a1220268f3929402b3699eed0c7.tar.gz forums-752b5b6628a27a1220268f3929402b3699eed0c7.tar.bz2 forums-752b5b6628a27a1220268f3929402b3699eed0c7.tar.xz forums-752b5b6628a27a1220268f3929402b3699eed0c7.zip |
[ticket/12746] Init phpbb_dispatcher being used by delete_post()
PHPBB3-12746
Diffstat (limited to 'tests')
-rw-r--r-- | tests/content_visibility/delete_post_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php index e0a2a3d402..99068729df 100644 --- a/tests/content_visibility/delete_post_test.php +++ b/tests/content_visibility/delete_post_test.php @@ -266,7 +266,7 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case */ public function test_delete_post($forum_id, $topic_id, $post_id, $data, $is_soft, $reason, $expected_posts, $expected_topic, $expected_forum) { - global $auth, $cache, $config, $db, $phpbb_container, $phpbb_root_path, $phpEx; + global $auth, $cache, $config, $db, $phpbb_container, $phpbb_dispatcher, $phpbb_root_path, $phpEx; $config['search_type'] = 'phpbb_mock_search'; $cache = new phpbb_mock_cache; @@ -283,6 +283,8 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case ))); $user = $this->getMock('\phpbb\user'); + $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); + $phpbb_container = new phpbb_mock_container_builder(); $phpbb_container->set('notification_manager', new phpbb_mock_notification_manager()); $phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE)); |