diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-09-21 10:06:58 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-10-09 09:53:07 +0200 |
commit | 2ce73a22e76ed021ec06cb29cd84af8b10f77c48 (patch) | |
tree | 68b926695f170a9875c07343d399ea945852e618 /tests/content_visibility | |
parent | [ticket/14168] Move function for attachment deletion into class (diff) | |
download | phpbb-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.tar.gz phpbb-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.tar.bz2 phpbb-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.zip |
[ticket/14168] Fix tests after adding attachment delete class
PHPBB3-14168
Diffstat (limited to 'tests/content_visibility')
-rw-r--r-- | tests/content_visibility/delete_post_test.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php index b59b6493d4..d6534456d0 100644 --- a/tests/content_visibility/delete_post_test.php +++ b/tests/content_visibility/delete_post_test.php @@ -312,12 +312,14 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case $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'); + $attachment_delete = new \phpbb\attachment\delete($config, $db); $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); $phpbb_container = new phpbb_mock_container_builder(); $phpbb_container->set('notification_manager', new phpbb_mock_notification_manager()); $phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $config, $phpbb_dispatcher, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE)); + $phpbb_container->set('attachment.delete', $attachment_delete); delete_post($forum_id, $topic_id, $post_id, $data, $is_soft, $reason); |