1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-31 03:59:52 +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

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