mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/14838] Correctly instantiate language object
PHPBB3-14838
This commit is contained in:
parent
1db7aa712a
commit
b582a19039
1 changed files with 6 additions and 1 deletions
|
@ -31,7 +31,12 @@ class phpbb_feed_attachments_base_test extends phpbb_database_test_case
|
||||||
|
|
||||||
$this->filesystem = new \phpbb\filesystem();
|
$this->filesystem = new \phpbb\filesystem();
|
||||||
$config = new \phpbb\config\config(array());
|
$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);
|
$feed_helper = new \phpbb\feed\helper($config, $user, $phpbb_root_path, $phpEx);
|
||||||
$db = $this->new_dbal();
|
$db = $this->new_dbal();
|
||||||
$cache = new \phpbb_mock_cache();
|
$cache = new \phpbb_mock_cache();
|
||||||
|
|
Loading…
Add table
Reference in a new issue