aboutsummaryrefslogtreecommitdiffstats
path: root/tests/content_visibility
diff options
context:
space:
mode:
Diffstat (limited to 'tests/content_visibility')
-rw-r--r--tests/content_visibility/delete_post_test.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php
index 581c132893..6ad6351a0c 100644
--- a/tests/content_visibility/delete_post_test.php
+++ b/tests/content_visibility/delete_post_test.php
@@ -309,10 +309,7 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case
)));
$user = new \phpbb\user('\phpbb\datetime');
-
- $phpbb_dispatcher = $this->getMockBuilder('\phpbb\event\dispatcher')
- ->disableOriginalConstructor()
- ->getMock();
+ $phpbb_dispatcher = new phpbb_mock_event_dispatcher();
$phpbb_container = new phpbb_mock_container_builder();
$phpbb_container->set('notification_manager', new phpbb_mock_notification_manager());