File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
website/docs/soql/advanced Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,11 @@ Account result1 = SOQL.of(Account.SObjectType).mockId('testQuery').toObject();
5050// Second execution returns "Second Call", then removes that mock
5151Account result2 = SOQL.of(Account.SObjectType).mockId('testQuery').toObject();
5252
53- // Third execution returns "Third Call", then removes that mock
53+ // Third execution returns "Third Call", but do not removes that mock - it's the last mock on the stack
5454Account result3 = SOQL.of(Account.SObjectType).mockId('testQuery').toObject();
5555
56- // Fourth execution would fail - no more mocks available
56+ // Fourth execution returns "Third Call" - it's the last mock on the stack
57+ Account result4 = SOQL.of(Account.SObjectType).mockId('testQuery').toObject();
5758```
5859
5960### Id Field Behavior
You can’t perform that action at this time.
0 commit comments