1 Antwort
In test classes no need to create custom metadata.W can access them by default. Try this code.
Hope this helps youLet me know if this helps you. Kindly mark it as solved so that it may help others in future.Thanks and Regards@istest static void testm(){
className.fetchAllData();//Replace your classname
list<account> acc = new list<account>();
account a = new account();
a.name = 'hiii';
acc.add(a) ;//insert any sobject record
insert acc;
className.operationDataStorageReduction(acc);
}