diff options
author | MateBartus <mate.bartus@gmail.com> | 2015-04-14 02:31:23 +0200 |
---|---|---|
committer | MateBartus <mate.bartus@gmail.com> | 2015-05-02 13:37:12 +0200 |
commit | 179a4700221aa49071b07d638c44b9326c7a14a8 (patch) | |
tree | 3dd78a5fb9353afabaa629e8dae58b7f8d99c144 /tests/content_visibility/set_topic_visibility_test.php | |
parent | Merge pull request #3565 from MateBartus/ticket/13793 (diff) | |
download | phpbb-179a4700221aa49071b07d638c44b9326c7a14a8.tar.gz phpbb-179a4700221aa49071b07d638c44b9326c7a14a8.tar.bz2 phpbb-179a4700221aa49071b07d638c44b9326c7a14a8.zip |
[ticket/13762] Moving language related functionality into a separate class
PHPBB3-13762
Diffstat (limited to 'tests/content_visibility/set_topic_visibility_test.php')
-rw-r--r-- | tests/content_visibility/set_topic_visibility_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/content_visibility/set_topic_visibility_test.php b/tests/content_visibility/set_topic_visibility_test.php index 6c34f42167..f4d65f9ce3 100644 --- a/tests/content_visibility/set_topic_visibility_test.php +++ b/tests/content_visibility/set_topic_visibility_test.php @@ -88,7 +88,9 @@ class phpbb_content_visibility_set_topic_visibility_test extends phpbb_database_ $cache = new phpbb_mock_cache; $db = $this->new_dbal(); $auth = $this->getMock('\phpbb\auth\auth'); - $user = new \phpbb\user('\phpbb\datetime'); + $lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx); + $lang = new \phpbb\language\language($lang_loader); + $user = new \phpbb\user($lang, '\phpbb\datetime'); $config = new phpbb\config\config(array()); $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); $content_visibility = new \phpbb\content_visibility($auth, $config, $phpbb_dispatcher, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE); |