From 85662fa8a16f158cebc3f82422e247422ef97a30 Mon Sep 17 00:00:00 2001 From: theo Date: Wed, 20 Nov 2024 17:05:18 +0100 Subject: [PATCH] Update Bolt_Test.cls --- force-app/main/default/classes/Bolt_Test.cls | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(); + } }