From 01755e7de6e7dcc68f4fd9453b80b028310033b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 26 Sep 2019 20:41:41 +0200 Subject: [PATCH] Fix given test object for UserRegistrationUserNotificationEvent --- .../event/UserRegistrationUserNotificationEvent.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationUserNotificationEvent.class.php index 7f3482ee74..1e69acb9c7 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationUserNotificationEvent.class.php @@ -84,6 +84,6 @@ class UserRegistrationUserNotificationEvent extends AbstractUserNotificationEven * @return UserFollowUserNotificationObject[] */ public static function getTestObjects(UserProfile $recipient, UserProfile $author) { - return [new UserRegistrationUserNotificationObject($author)]; + return [new UserRegistrationUserNotificationObject($author->getDecoratedObject())]; } } -- 2.20.1