We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2c8d5 commit 880a561Copy full SHA for 880a561
force-app/main/default/classes/main/standard-soql/SOQL_Test.cls
@@ -3438,6 +3438,15 @@ private class SOQL_Test {
3438
Assert.areEqual(accounts, result, 'The mocked accounts should be returned.');
3439
}
3440
3441
+ @IsTest
3442
+ static void mockIdSpecifiedButQueryNotMocked() {
3443
+ // Test
3444
+ List<Account> accounts = SOQL.of(Account.SObjectType).with(Account.Name).mockId('mockingQuery').toList();
3445
+
3446
+ // Verify
3447
+ Assert.areEqual(0, accounts.size(), 'The mocked accounts should be returned.');
3448
+ }
3449
3450
@IsTest
3451
static void mockingSingleRecord() {
3452
// Setup
0 commit comments