From 9ed0e7a2efb8dd44876970766431ed80da93db1f Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 15 四月 2022 10:10:20 +0800 Subject: [PATCH] 20220415Backup --- force-app/main/default/classes/SearchContactControllerTest.cls | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/classes/SearchContactControllerTest.cls b/force-app/main/default/classes/SearchContactControllerTest.cls index 092f899..f455f2b 100644 --- a/force-app/main/default/classes/SearchContactControllerTest.cls +++ b/force-app/main/default/classes/SearchContactControllerTest.cls @@ -8,15 +8,18 @@ TestDataUtility.CreatePIPolicyConfiguration('Contact'); Contact con = TestDataUtility.CreateContacts(1)[0]; con.AWS_Data_Id__c = 'davdsvgrqcx'; + con.AccountId = '0010K00001aqioMQAQ'; update con; List<String> awsList = new List<String>(); awsList.add(con.AWS_Data_Id__c); + awsList.add(con.AccountId); String awsListJson = JSON.serialize(awsList); String url = ApexPages.currentPage().getParameters().put('accountId',con.AccountId); Test.startTest(); SearchContactController scc = new SearchContactController(); - SearchContactController.searchContacts(awsListJson); + SearchContactController.searchContacts(awsListJson,'',''); + SearchContactController.searchContactsNoPI(''); scc.searchKeyWord = 'test'; Test.stopTest(); } -- Gitblit v1.9.1