diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-01-04 19:47:10 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-01-04 19:47:10 +0100 |
commit | b582a19039acb004d38927cde29f459f8bf4039f (patch) | |
tree | 02accfaa75c2a2cb2fd2200a9d9cc52f7668a2c4 /tests/feed | |
parent | 1db7aa712af0521f1a64e90c6fcf4972ac5b08c2 (diff) | |
download | forums-b582a19039acb004d38927cde29f459f8bf4039f.tar forums-b582a19039acb004d38927cde29f459f8bf4039f.tar.gz forums-b582a19039acb004d38927cde29f459f8bf4039f.tar.bz2 forums-b582a19039acb004d38927cde29f459f8bf4039f.tar.xz forums-b582a19039acb004d38927cde29f459f8bf4039f.zip |
[ticket/14838] Correctly instantiate language object
PHPBB3-14838
Diffstat (limited to 'tests/feed')
-rw-r--r-- | tests/feed/attachments_base_test.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/feed/attachments_base_test.php b/tests/feed/attachments_base_test.php index c980dfd3d7..dd432d13f5 100644 --- a/tests/feed/attachments_base_test.php +++ b/tests/feed/attachments_base_test.php @@ -31,7 +31,12 @@ class phpbb_feed_attachments_base_test extends phpbb_database_test_case $this->filesystem = new \phpbb\filesystem(); $config = new \phpbb\config\config(array()); - $user = new \phpbb\user('\phpbb\datetime'); + $user = new \phpbb\user( + new \phpbb\language\language( + new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx) + ), + '\phpbb\datetime' + ); $feed_helper = new \phpbb\feed\helper($config, $user, $phpbb_root_path, $phpEx); $db = $this->new_dbal(); $cache = new \phpbb_mock_cache(); |