1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-31 20:11:54 +02:00

[feature/soft-delete]Fix the rest of unit tests failures

PHPBB3-9567
This commit is contained in:
Joas Schilling
2012-11-10 16:41:43 +01:00
parent 948bfcbe77
commit 51966bd497
7 changed files with 24 additions and 6 deletions

View File

@@ -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);