You need to sign in to do that
Don't have an account?
Madevala Jithender
how di i write a testclass for a trigger
trigger AccountAddressTrigger on Account (before insert,before update) {
for(Account account:Trigger.new){
if(account.Match_Billing_Address__c==True){
account.shippingpostalcode=account.Billingpostalcode;
}
}
}
for(Account account:Trigger.new){
if(account.Match_Billing_Address__c==True){
account.shippingpostalcode=account.Billingpostalcode;
}
}
}
As per Test class best bractice you need to follow salesforce best pratcice concept that's will be very usefull
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
Can you try the below test class it gives 100% coverage.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
Try Below Test Class Please Mark It As Best Asnwer If It Helps
Thank You!
As per Test class best bractice you need to follow salesforce best pratcice concept that's will be very usefull
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh