Use startTest
and stopTest
to alleviate governor limit issues in Salesforce Apex tests.
Use startTest
and stopTest
to alleviate governor limit issues in Salesforce Apex tests.
I came across a couple of handy Apex shortcuts in my Salesforce work this week.
Recently my team at work ran into a bug in an Apex class around trying to send email to a bounced email address. Simulating that for an Apex test requires setting two specific fields.