aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-09-21 10:06:58 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-10-09 09:53:07 +0200
commit2ce73a22e76ed021ec06cb29cd84af8b10f77c48 (patch)
tree68b926695f170a9875c07343d399ea945852e618
parentd1030450f5f2ddca88f1ef17cc7b949541e64bd8 (diff)
downloadforums-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.tar
forums-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.tar.gz
forums-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.tar.bz2
forums-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.tar.xz
forums-2ce73a22e76ed021ec06cb29cd84af8b10f77c48.zip
[ticket/14168] Fix tests after adding attachment delete class
PHPBB3-14168
-rw-r--r--tests/content_visibility/delete_post_test.php2
-rw-r--r--tests/functions_user/delete_user_test.php1
-rw-r--r--tests/privmsgs/delete_user_pms_test.php1
3 files changed, 4 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);
diff --git a/tests/functions_user/delete_user_test.php b/tests/functions_user/delete_user_test.php
index 9e2caf9d21..163e5d77e2 100644
--- a/tests/functions_user/delete_user_test.php
+++ b/tests/functions_user/delete_user_test.php
@@ -36,6 +36,7 @@ class phpbb_functions_user_delete_user_test extends phpbb_database_test_case
$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('attachment.delete', new \phpbb\attachment\delete($config, $db));
$phpbb_container->set(
'auth.provider.db',
new phpbb_mock_auth_provider()
diff --git a/tests/privmsgs/delete_user_pms_test.php b/tests/privmsgs/delete_user_pms_test.php
index 0f061e9784..f8c40f588a 100644
--- a/tests/privmsgs/delete_user_pms_test.php
+++ b/tests/privmsgs/delete_user_pms_test.php
@@ -91,6 +91,7 @@ class phpbb_privmsgs_delete_user_pms_test extends phpbb_database_test_case
$phpbb_container = new phpbb_mock_container_builder();
$phpbb_container->set('notification_manager', new phpbb_mock_notification_manager());
+ $phpbb_container->set('attachment.delete', new \phpbb\attachment\delete(new \phpbb\config\config(array()), $db));
phpbb_delete_user_pms($delete_user);