mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
[ticket/11103] Instantiate $phpbb_notifications as needed
https://github.com/phpbb/phpbb3/pull/992#discussion_r2413976 PHPBB3-11103
This commit is contained in:
@@ -81,10 +81,12 @@ class phpbb_privmsgs_delete_user_pms_test extends phpbb_database_test_case
|
||||
*/
|
||||
public function test_delete_user_pms($delete_user, $remaining_privmsgs, $remaining_privmsgs_to)
|
||||
{
|
||||
global $db, $phpbb_notifications;
|
||||
global $db, $phpbb_container;
|
||||
|
||||
$db = $this->new_dbal();
|
||||
$phpbb_notifications = new phpbb_mock_notification_manager();
|
||||
|
||||
$phpbb_container = new phpbb_mock_container_builder();
|
||||
$phpbb_container->set('notification_manager', new phpbb_mock_notification_manager());
|
||||
|
||||
phpbb_delete_user_pms($delete_user);
|
||||
|
||||
|
Reference in New Issue
Block a user