You need to sign in to do that
Don't have an account?
dharmik thummar
How i get code coverage for this code
if(!mm1.isEmpty()){ For(Milestone1_Task__c mm1u: mm1){ mm1u.Task_Stage__c = triggerNew[0].Determine_Business_Name__c; if(triggerNew[0].Determine_Business_Name__c == 'Completed'){ mm1u.Complete__c = true; mm1u.Complete_Date__c = system.Today(); } } mtList.addAll( mm1); }
Assuming that you are trying insert/update Milestone1_Task__c object, test class goes as below
Thanks,
KD