aboutsummaryrefslogtreecommitdiff
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/set_topic_visibility_test.php
parentMerge remote-tracking branch 'remotes/phpbb/develop' into feature/softdelete-... (diff)
downloadphpbb-51966bd497e567bb9154c4fff4ccda918cff95a4.tar.gz
phpbb-51966bd497e567bb9154c4fff4ccda918cff95a4.tar.bz2
phpbb-51966bd497e567bb9154c4fff4ccda918cff95a4.zip
[feature/soft-delete]Fix the rest of unit tests failures
PHPBB3-9567
Diffstat (limited to 'tests/content_visibility/set_topic_visibility_test.php')
-rw-r--r--tests/content_visibility/set_topic_visibility_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/content_visibility/set_topic_visibility_test.php b/tests/content_visibility/set_topic_visibility_test.php
index a1aedc6a5b..31a6b37caa 100644
--- a/tests/content_visibility/set_topic_visibility_test.php
+++ b/tests/content_visibility/set_topic_visibility_test.php
@@ -79,8 +79,9 @@ class phpbb_content_visibility_set_topic_visibility_test extends phpbb_database_
*/
public function test_set_topic_visibility($visibility, $topic_id, $forum_id, $user_id, $time, $reason, $force_update_all, $expected_posts, $expected_topic)
{
- global $db;
+ global $cache, $db;
+ $cache = new phpbb_mock_cache;
$db = $this->new_dbal();
phpbb_content_visibility::set_topic_visibility($visibility, $topic_id, $forum_id, $user_id, $time, $reason, $force_update_all);