@isTest
public class qsmailcontrollerTest{
public static testMethod void mailControl()
{
string userName = UserInfo.getUserName();
string Id = 'RecordId';
/*the return URL record Id that you need to insert before this ex:Account acc = new Account();acc.Name = 'chinna';insert acc; so you need to give acc.id*/
Test.StartTest();
qsmailcontroller mail = new qsmailcontroller();
mail.mailtomanager(Id, userName);
Test.StopTest();
}
}
Show quoted text
No comments:
Post a Comment