You need to sign in to do that
Don't have an account?
salesforce sfdx
How to write the testclass for below code in Sample code in Salesforce
Hi just a small sample code .
How to write the Test Class for the Above code.. please let me know.
Thanks
Prathusha Reddy.
public class TargetPlanController { @AuraEnabled public static List <TargetPlan__c > fetchAccts(Id recordId) { return [SELECT Name,Account__c,No_of_Leads__c,AccountCity__c,FROM TargetPlan__c where BP_Id__c =: recordId ]; } }
How to write the Test Class for the Above code.. please let me know.
Thanks
Prathusha Reddy.
All Answers
Marked as the Best Answer