mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 06:38:43 +01:00
Merge pull request #5539 from 3D-I/ticket/15975
[ticket/15975] Remove user notification data upon user deletion
This commit is contained in:
commit
2975566650
@ -692,7 +692,8 @@ function user_delete($mode, $user_ids, $retain_username = true)
|
||||
PRIVMSGS_RULES_TABLE,
|
||||
$phpbb_container->getParameter('tables.auth_provider_oauth_token_storage'),
|
||||
$phpbb_container->getParameter('tables.auth_provider_oauth_states'),
|
||||
$phpbb_container->getParameter('tables.auth_provider_oauth_account_assoc')
|
||||
$phpbb_container->getParameter('tables.auth_provider_oauth_account_assoc'),
|
||||
$phpbb_container->getParameter('tables.user_notifications')
|
||||
];
|
||||
|
||||
// Ignore errors on deleting from non-existent tables, e.g. when migrating
|
||||
|
@ -98,6 +98,8 @@ abstract class phpbb_console_user_base extends phpbb_database_test_case
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_states', 'phpbb_oauth_states');
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_account_assoc', 'phpbb_oauth_accounts');
|
||||
|
||||
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
||||
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
|
@ -86,6 +86,8 @@ class phpbb_functions_user_delete_test extends phpbb_database_test_case
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_token_storage', 'phpbb_oauth_tokens');
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_states', 'phpbb_oauth_states');
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_account_assoc', 'phpbb_oauth_accounts');
|
||||
|
||||
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
||||
}
|
||||
|
||||
public function test_user_delete()
|
||||
|
@ -49,6 +49,8 @@ class phpbb_functions_user_delete_user_test extends phpbb_database_test_case
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_token_storage', 'phpbb_oauth_tokens');
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_states', 'phpbb_oauth_states');
|
||||
$phpbb_container->setParameter('tables.auth_provider_oauth_account_assoc', 'phpbb_oauth_accounts');
|
||||
|
||||
$phpbb_container->setParameter('tables.user_notifications', 'phpbb_user_notifications');
|
||||
}
|
||||
|
||||
public function first_last_post_data()
|
||||
|
Loading…
x
Reference in New Issue
Block a user