You need to sign in to do that
Don't have an account?
Sree07
How to cover the lines for the following code in test class
for (ContentVersion document: documents) {
Messaging.EmailFileAttachment attachment = new Messaging.EmailFileAttachment(); attachment.setBody(document.VersionData);
attachment.setFileName(document.Title);
attachments.add(attachment);
}
Messaging.EmailFileAttachment attachment = new Messaging.EmailFileAttachment(); attachment.setBody(document.VersionData);
attachment.setFileName(document.Title);
attachments.add(attachment);
}
Please follow below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh