沙世明
2022-04-08 eeb7c0a2d6f037d515bb822d739036b69c4dc73a
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;