1 Antwort
Without using seeAllData = true we can't access the org data but it's not recommended to use seeAllData = 'True' in the test class the test class will fail if you don't have the particular user in your org then the test will fail. So I recommend you to create a new user in the test class with the user profile same as your Integration userCreation of test data or test user in salesforce org won't store in the org or send any notification.https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_tools_runas.htm