I'm attempting to test my batch job where I'm querying
Users based on
JobGrade and creating a custom record for each. For some reason, my test function keeps using org data instead of test data that I'm creating. I'm not using
SeeAllData=True so I'm a little confused on why this is happening.
Then I keep getting the error
no more than one executebatch can be called from within a test method
I attempted to delete all the
User records but I can't use the
delete operation on
User objects. Any idea how to approach this issue?