You need to sign in to do that
Don't have an account?
Prakher Chaturvedi 2
SystemModStamp coverage in Apex class
I have a class which filters query on SystemModStamp < Yesterday.
I want to cover this query in test class by creating record in test class whose SystemModStamp is older than yesterday.
I have tried on Json.deserialize method and Test.LoadData method both do not work well for systemModStamp.
Prakher,
You can use Test.createdDate method in salesforce.
https://developer.salesforce.com/docs/atlas.en-us.234.0.apexref.meta/apexref/apex_methods_system_test.htm
Example is shown below