You need to sign in to do that
Don't have an account?
fiona gentry
How to write system.assert for SOQL Containing Most Recent List view of Cases
Dear Pals,
How to write system.assert for SOQL Containing Most Recent List view of Cases
Here is test class where i want to write system.assert
Here is apex class
Your help is needed and appreciated
Regards,
Fiona
How to write system.assert for SOQL Containing Most Recent List view of Cases
Here is test class where i want to write system.assert
@isTest static void testListView() { test.starttest(); List<ListView> views = ERT_MultiLevelSelectEdit.getListViews(); test.stopTest(); }
Here is apex class
@AuraEnabled public static List<ListView> getListViews() { List<ListView> listviews = [SELECT Id, Name FROM ListView WHERE SobjectType = 'Case' and Name='Recently Viewed Cases']; return listviews; }
Your help is needed and appreciated
Regards,
Fiona
You can simply do