From 01f207d979d6be17c8cdec293feab48828c0ec3e Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期五, 08 四月 2022 14:22:52 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG
---
force-app/main/default/classes/CampaignMemberControllerTest.cls | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/CampaignMemberControllerTest.cls b/force-app/main/default/classes/CampaignMemberControllerTest.cls
index 20be00f..844174a 100644
--- a/force-app/main/default/classes/CampaignMemberControllerTest.cls
+++ b/force-app/main/default/classes/CampaignMemberControllerTest.cls
@@ -1,7 +1,12 @@
@isTest
private class CampaignMemberControllerTest {
-
- @isTest static void test_method_one() {
+ @TestSetup
+ static void setUp(){
+ TestDataUtility.CreatePIPolicyConfigurations( new string[]{'Contact'});
+ }
+
+ @isTest
+ static void test_method_one() {
RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp'];
List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc];
@@ -78,6 +83,8 @@
cam.Mailflg_before15__c = true;
cam.Mailflg_before7__c = true;
cam.Mailflg_after3__c = true;
+ cam.HostName__c = '111';
+ cam.cooperatorCompany__c = '222';
cam.status = '鍏紑涓�';
insert cam;
--
Gitblit v1.9.1