aboutsummaryrefslogtreecommitdiffstats
path: root/tests/feed
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2017-09-22 13:03:14 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2017-09-22 13:03:14 +0200
commit27ae01c27a99b0f0674ad4f0e82f1b018365926d (patch)
tree9505bed6715467abc184f4c2f541d1844e066633 /tests/feed
parentd095e620c1b36d68206139c082881b32a5f6a6e6 (diff)
downloadforums-27ae01c27a99b0f0674ad4f0e82f1b018365926d.tar
forums-27ae01c27a99b0f0674ad4f0e82f1b018365926d.tar.gz
forums-27ae01c27a99b0f0674ad4f0e82f1b018365926d.tar.bz2
forums-27ae01c27a99b0f0674ad4f0e82f1b018365926d.tar.xz
forums-27ae01c27a99b0f0674ad4f0e82f1b018365926d.zip
[ticket/15245] Fix images in feeds when accessing via app.php
PHPBB3-15245
Diffstat (limited to 'tests/feed')
-rw-r--r--tests/feed/attachments_base_test.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/feed/attachments_base_test.php b/tests/feed/attachments_base_test.php
index dd432d13f5..f5c79bd6b4 100644
--- a/tests/feed/attachments_base_test.php
+++ b/tests/feed/attachments_base_test.php
@@ -31,13 +31,22 @@ 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()
+ ),
+ new \phpbb\filesystem\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);
+ $feed_helper = new \phpbb\feed\helper($config, $path_helper, $user, $phpbb_root_path, $phpEx);
$db = $this->new_dbal();
$cache = new \phpbb_mock_cache();
$auth = new \phpbb\auth\auth();