aboutsummaryrefslogtreecommitdiffstats
path: root/tests/content_visibility/delete_post_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-11-10 16:41:43 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-11-10 16:41:43 +0100
commit51966bd497e567bb9154c4fff4ccda918cff95a4 (patch)
tree262f79aecb55c6921f276d42e77f3a1761129331 /tests/content_visibility/delete_post_test.php
parent948bfcbe770bd8cb6f95a7a7c5cabb3ddfe27597 (diff)
downloadforums-51966bd497e567bb9154c4fff4ccda918cff95a4.tar
forums-51966bd497e567bb9154c4fff4ccda918cff95a4.tar.gz
forums-51966bd497e567bb9154c4fff4ccda918cff95a4.tar.bz2
forums-51966bd497e567bb9154c4fff4ccda918cff95a4.tar.xz
forums-51966bd497e567bb9154c4fff4ccda918cff95a4.zip
[feature/soft-delete]Fix the rest of unit tests failures
PHPBB3-9567
Diffstat (limited to 'tests/content_visibility/delete_post_test.php')
-rw-r--r--tests/content_visibility/delete_post_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php
index 8b5a26a6fb..3f15d5a158 100644
--- a/tests/content_visibility/delete_post_test.php
+++ b/tests/content_visibility/delete_post_test.php
@@ -262,9 +262,10 @@ 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, $config, $db;
+ global $auth, $cache, $config, $db;
$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)));