Create Mock Custom Metadata with Child Relationship Query
I have a Controller class on which I execute a SOQL query to Custom Metadata Type records. The SOQL query also contains a child relationship query (Master-Detail relationship). I need to write a test with mock custom metadata records @AuraEnabled(cacheable=true) public static List<Response> getLeadMetadataValues() { List<Lead_Business_Status__mdt> leadBusinessStatusList = [ SELECT Id, Label, DeveloperName, Index__c, (SELECT Id, Label, DeveloperName, Reason_Status_Api_Name__c FROM Lead_Reason_Status__r) FROM Lead_Business_Status__mdt ORDER BY Index__c ASC ]; List<Response> resList = new List<Re
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.