FavoriteVamshi Krishna Pemberthi (IBM) asked in #Salesforce DeveloperJun 23, 2021, 11:38 AMIs there any way to test the apex class methods which are based on caseHistory Object?1 answerSortSort by DateSort by Most HelpfulSort by DateAccepted AnswerPranit Jangada (IBM)Oct 1, 2021, 1:46 PMHello Vamshi, You need to create fake data for CaseHistory (just like you create the records for Case Object in test method) and use that data in the test class.Add a commentWrite an answer...BoldItalicUnderlineStrikethroughBulleted ListNumbered ListAdd linkCode blockInsert imageAttach filesLink URLCancelSave0/9000Reply
Accepted AnswerPranit Jangada (IBM)Oct 1, 2021, 1:46 PMHello Vamshi, You need to create fake data for CaseHistory (just like you create the records for Case Object in test method) and use that data in the test class.