1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

Merge pull request #4969 from Elsensee/ticket/15245

[ticket/15245] Fix images in feeds when accessing via app.php
This commit is contained in:
Marc Alexander
2017-10-31 09:58:29 +01:00
4 changed files with 88 additions and 28 deletions

View File

@@ -31,13 +31,25 @@ class phpbb_feed_attachments_base_test extends phpbb_database_test_case
$this->filesystem = new \phpbb\filesystem();
$config = new \phpbb\config\config(array());
$path_helper = new \phpbb\path_helper(
new \phpbb\symfony_request(
new phpbb_mock_request()
),
$this->filesystem,
$this->getMock('\phpbb\request\request'),
$phpbb_root_path,
'php'
);
$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);
$container = new phpbb_mock_container_builder();
$this->get_test_case_helpers()->set_s9e_services($container);
$container->set('feed.quote_helper', new \phpbb\feed\quote_helper($user, $phpbb_root_path, 'php'));
$feed_helper = new \phpbb\feed\helper($config, $container, $path_helper, $container->get('text_formatter.renderer'), $user);
$db = $this->new_dbal();
$cache = new \phpbb_mock_cache();
$auth = new \phpbb\auth\auth();