aboutsummaryrefslogtreecommitdiffstats
path: root/tests/content_visibility/delete_post_test.php
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-01-06 12:57:47 +0000
committerbrunoais <brunoaiss@gmail.com>2015-01-06 12:58:01 +0000
commit346f654b2e933ce57413d3f811aeb86732d8c602 (patch)
treef200353911cf4d904f2ccdcefdf1f56bf1baecd6 /tests/content_visibility/delete_post_test.php
parentb3bcc1b501a81e7f26d237cd427185ddce4d4bcc (diff)
downloadforums-346f654b2e933ce57413d3f811aeb86732d8c602.tar
forums-346f654b2e933ce57413d3f811aeb86732d8c602.tar.gz
forums-346f654b2e933ce57413d3f811aeb86732d8c602.tar.bz2
forums-346f654b2e933ce57413d3f811aeb86732d8c602.tar.xz
forums-346f654b2e933ce57413d3f811aeb86732d8c602.zip
[ticket/13146] Use the correct phpbb_mock_event_dispatcher, instead of builder
PHPBB3-13146
Diffstat (limited to 'tests/content_visibility/delete_post_test.php')
-rw-r--r--tests/content_visibility/delete_post_test.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php
index 42e9504214..581c132893 100644
--- a/tests/content_visibility/delete_post_test.php
+++ b/tests/content_visibility/delete_post_test.php
@@ -296,9 +296,7 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case
$cache = new phpbb_mock_cache;
$db = $this->new_dbal();
$phpbb_config = new \phpbb\config\config(array('num_posts' => 3, 'num_topics' => 1));
- $phpbb_dispatcher = $this->getMockBuilder('\phpbb\event\dispatcher')
- ->disableOriginalConstructor()
- ->getMock();
+ $phpbb_dispatcher = new phpbb_mock_event_dispatcher();
set_config_count(null, null, null, $phpbb_config);
// Create auth mock