aboutsummaryrefslogtreecommitdiffstats
path: root/tests/content_visibility/delete_post_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-06 16:13:34 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-06 16:13:34 +0100
commit1a17a3854fa62e0fcdb018e1dcb53253b67ea8f1 (patch)
tree8dce4472b6502354a8e7566124ca9eaf63bf5de8 /tests/content_visibility/delete_post_test.php
parent9bddf73d315de89fc65b74bcc81aca8dfe57a796 (diff)
downloadforums-1a17a3854fa62e0fcdb018e1dcb53253b67ea8f1.tar
forums-1a17a3854fa62e0fcdb018e1dcb53253b67ea8f1.tar.gz
forums-1a17a3854fa62e0fcdb018e1dcb53253b67ea8f1.tar.bz2
forums-1a17a3854fa62e0fcdb018e1dcb53253b67ea8f1.tar.xz
forums-1a17a3854fa62e0fcdb018e1dcb53253b67ea8f1.zip
[ticket/9657] Fix unit tests missing global container.
PHPBB3-9657
Diffstat (limited to 'tests/content_visibility/delete_post_test.php')
-rw-r--r--tests/content_visibility/delete_post_test.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php
index 3f15d5a158..e7ab3e3879 100644
--- a/tests/content_visibility/delete_post_test.php
+++ b/tests/content_visibility/delete_post_test.php
@@ -262,13 +262,16 @@ 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;
+ global $auth, $cache, $config, $db, $phpbb_container;
$config['search_type'] = 'phpbb_mock_search';
$cache = new phpbb_mock_cache;
$db = $this->new_dbal();
set_config_count(null, null, null, new phpbb_config(array('num_posts' => 3, 'num_topics' => 1)));
+ $phpbb_container = new phpbb_mock_container_builder();
+ $phpbb_container->set('notification_manager', new phpbb_mock_notification_manager());
+
// Create auth mock
$auth = $this->getMock('phpbb_auth');
$auth->expects($this->any())