Skip to content

Commit 9afd3fc

Browse files
committed
documentation update
1 parent 1d37d5b commit 9afd3fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/docs/soql/advanced/mocking.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
5151
Account 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
5454
Account 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

0 commit comments

Comments
 (0)