aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-01-02 19:26:05 +0000
committerbrunoais <brunoaiss@gmail.com>2015-01-02 19:26:05 +0000
commitb3bcc1b501a81e7f26d237cd427185ddce4d4bcc (patch)
treec5a0f12b12280f40fc7c0d46019a4da6634bef0f /tests
parent8376a027a122af99782fa2d9f87185b448e2cf77 (diff)
downloadforums-b3bcc1b501a81e7f26d237cd427185ddce4d4bcc.tar
forums-b3bcc1b501a81e7f26d237cd427185ddce4d4bcc.tar.gz
forums-b3bcc1b501a81e7f26d237cd427185ddce4d4bcc.tar.bz2
forums-b3bcc1b501a81e7f26d237cd427185ddce4d4bcc.tar.xz
forums-b3bcc1b501a81e7f26d237cd427185ddce4d4bcc.zip
[ticket/13146] Missing delete post test mock
PHPBB3-13146
Diffstat (limited to 'tests')
-rw-r--r--tests/content_visibility/delete_post_test.php4
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 df5acedd1e..42e9504214 100644
--- a/tests/content_visibility/delete_post_test.php
+++ b/tests/content_visibility/delete_post_test.php
@@ -296,7 +296,9 @@ 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->getMock('\phpbb\event\dispatcher');
+ $phpbb_dispatcher = $this->getMockBuilder('\phpbb\event\dispatcher')
+ ->disableOriginalConstructor()
+ ->getMock();
set_config_count(null, null, null, $phpbb_config);
// Create auth mock