diff options
| author | Dhruv <dhruv.goel92@gmail.com> | 2014-06-20 15:40:23 +0530 |
|---|---|---|
| committer | Dhruv <dhruv.goel92@gmail.com> | 2014-06-20 15:40:23 +0530 |
| commit | eeb2c128f56d6661f236afe2eecae0d832877d53 (patch) | |
| tree | 4ffa4866f6157192d0cd4d953dc275fba9b405ab /tests/content_visibility/set_topic_visibility_test.php | |
| parent | 1a79de4214ac459e7e341e4f4c25061936e22c1f (diff) | |
| download | forums-eeb2c128f56d6661f236afe2eecae0d832877d53.tar forums-eeb2c128f56d6661f236afe2eecae0d832877d53.tar.gz forums-eeb2c128f56d6661f236afe2eecae0d832877d53.tar.bz2 forums-eeb2c128f56d6661f236afe2eecae0d832877d53.tar.xz forums-eeb2c128f56d6661f236afe2eecae0d832877d53.zip | |
[ticket/12738] Fix tests with new config object injection
PHPBB3-12738
Diffstat (limited to 'tests/content_visibility/set_topic_visibility_test.php')
| -rw-r--r-- | tests/content_visibility/set_topic_visibility_test.php | 3 |
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 6437c61436..230474428c 100644 --- a/tests/content_visibility/set_topic_visibility_test.php +++ b/tests/content_visibility/set_topic_visibility_test.php @@ -89,7 +89,8 @@ class phpbb_content_visibility_set_topic_visibility_test extends phpbb_database_ $db = $this->new_dbal(); $auth = $this->getMock('\phpbb\auth\auth'); $user = $this->getMock('\phpbb\user'); - $content_visibility = new \phpbb\content_visibility($auth, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE); + $config = new phpbb\config\config(array()); + $content_visibility = new \phpbb\content_visibility($auth, $config, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE); $content_visibility->set_topic_visibility($visibility, $topic_id, $forum_id, $user_id, $time, $reason, $force_update_all); |
