From: Joshua Rüsweg Date: Thu, 26 Sep 2019 18:41:41 +0000 (+0200) Subject: Fix given test object for UserRegistrationUserNotificationEvent X-Git-Tag: 5.2.0_Beta_2~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01755e7de6e7dcc68f4fd9453b80b028310033b8;p=GitHub%2FWoltLab%2FWCF.git Fix given test object for UserRegistrationUserNotificationEvent --- 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())]; } }