Fix given test object for UserRegistrationUserNotificationEvent
authorJoshua Rüsweg <ruesweg@woltlab.com>
Thu, 26 Sep 2019 18:41:41 +0000 (20:41 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Thu, 26 Sep 2019 18:41:41 +0000 (20:41 +0200)
wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationUserNotificationEvent.class.php

index 7f3482ee74985c299e60c2691caf6bcdcea9d75a..1e69acb9c7c0727f0619f98d93f6edbd03f8c724 100644 (file)
@@ -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())];
        }
 }