From 9ec7864874be51f0458408e17f51873b5443e76c Mon Sep 17 00:00:00 2001 From: 涂煌豪 <tuhuanghao@prec-tech.com> Date: 星期一, 23 五月 2022 19:06:21 +0800 Subject: [PATCH] 客户人员重复逻辑修改 --- force-app/main/default/classes/ContactTriggerHandlerTest.cls | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/force-app/main/default/classes/ContactTriggerHandlerTest.cls b/force-app/main/default/classes/ContactTriggerHandlerTest.cls index 0f3665c..5f26f37 100644 --- a/force-app/main/default/classes/ContactTriggerHandlerTest.cls +++ b/force-app/main/default/classes/ContactTriggerHandlerTest.cls @@ -6,6 +6,11 @@ public static Contact contact1 = new Contact(); public static Contact contact2 = new Contact(); + @Testsetup + static void setup(){ + TestDataUtility.CreatePIPolicyConfiguration('Agency_Contact__c'); + + } @isTest static void test_method_one() { List<RecordType> HPrectCo = [select Id, Name, DeveloperName from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP']; List<RecordType> GIrectCo = [select Id, Name, DeveloperName from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Department_Class_GI']; -- Gitblit v1.9.1