diff --git a/force-app/main/default/classes/Bolt_Test.cls b/force-app/main/default/classes/Bolt_Test.cls index 43be4b5..776d689 100644 --- a/force-app/main/default/classes/Bolt_Test.cls +++ b/force-app/main/default/classes/Bolt_Test.cls @@ -16,4 +16,14 @@ public with sharing class Bolt_Test { ); Test.stopTest(); } + @istest() + public static void testDynamicSOQLWithoutSharing() { + Test.startTest(); + Bolt.soqlQueryWithoutSharing( + 'SELECT Id FROM Case WHERE Id in :arg0 LIMIT 1', + '{"arg0":"$ARRAY${}"}', + 'WITH USER_MODE' + ); + Test.stopTest(); + } }