You need to sign in to do that
Don't have an account?
Ido Greenbaum 10
User Profile picture - 'FullPhotoUrl' : help with tests
Hi,
I came up with an Apex Class to extract the User Profile Picture, to be used in a VisualForce Email Templat :
Can anyone please assist with a test for this class?
Thank you,
Ido.
I came up with an Apex Class to extract the User Profile Picture, to be used in a VisualForce Email Templat :
public class UserProfilePicture { public String profileImageUrl { get; set; } List<user> lstuser; public UserProfilePicture () { lstuser = [select FullPhotoUrl from User where Id =: UserInfo.getUserId()]; profileImageUrl=lstuser[0].FullPhotoUrl; } }
Can anyone please assist with a test for this class?
Thank you,
Ido.
You really just need to test if the URL is populated, something like this: Please mark this post as solved if it's resolved so that it gets removed form the unanswered queue and becomes a proper solution for others who are really in need of it.
Regards,
Nagendra.P
All Answers
You really just need to test if the URL is populated, something like this: Please mark this post as solved if it's resolved so that it gets removed form the unanswered queue and becomes a proper solution for others who are really in need of it.
Regards,
Nagendra.P