diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-11-10 16:41:43 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-11-10 16:41:43 +0100 |
| commit | 51966bd497e567bb9154c4fff4ccda918cff95a4 (patch) | |
| tree | 262f79aecb55c6921f276d42e77f3a1761129331 /tests/content_visibility/set_post_visibility_test.php | |
| parent | 948bfcbe770bd8cb6f95a7a7c5cabb3ddfe27597 (diff) | |
| download | forums-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/set_post_visibility_test.php')
| -rw-r--r-- | tests/content_visibility/set_post_visibility_test.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/content_visibility/set_post_visibility_test.php b/tests/content_visibility/set_post_visibility_test.php index d3b237e3e9..8f83457cae 100644 --- a/tests/content_visibility/set_post_visibility_test.php +++ b/tests/content_visibility/set_post_visibility_test.php @@ -115,8 +115,9 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t */ public function test_set_post_visibility($visibility, $post_id, $topic_id, $forum_id, $user_id, $time, $reason, $is_starter, $is_latest, $expected, $expected_topic) { - global $db; + global $cache, $db; + $cache = new phpbb_mock_cache; $db = $this->new_dbal(); phpbb_content_visibility::set_post_visibility($visibility, $post_id, $topic_id, $forum_id, $user_id, $time, $reason, $is_starter, $is_latest); |
