Vamshi 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.
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.