From eeb7c0a2d6f037d515bb822d739036b69c4dc73a Mon Sep 17 00:00:00 2001 From: 沙世明 <shashiming@prec-tech.com> Date: 星期五, 08 四月 2022 17:14:12 +0800 Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG --- force-app/main/default/classes/SLAReportDetailsControllerTest.cls | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/SLAReportDetailsControllerTest.cls b/force-app/main/default/classes/SLAReportDetailsControllerTest.cls index 4786ab6..a9ea524 100644 --- a/force-app/main/default/classes/SLAReportDetailsControllerTest.cls +++ b/force-app/main/default/classes/SLAReportDetailsControllerTest.cls @@ -1,5 +1,11 @@ @isTest private class SLAReportDetailsControllerTest { + + @testSetup + static void setUp(){ + TestDataUtility.CreatePIPolicyConfigurations( new string[]{'Contact'}); + } + //鏈夋姤鍛婁功 static testMethod void testMethod1() { @@ -84,7 +90,7 @@ Daily_Report__c dr3 = new Daily_Report__c(); dr3.Reporter__c = UserInfo.getUserId(); dr3.Reported_Date__c = Date.today().addDays(4); - dr3.Status__c = '鐢宠珛涓�'; + dr3.Status__c = '浣滄垚涓�'; insert dr3; Event__c event = new Event__c(); @@ -208,7 +214,7 @@ Daily_Report__c dr3 = new Daily_Report__c(); dr3.Reporter__c = UserInfo.getUserId(); dr3.Reported_Date__c = Date.today().addDays(4); - dr3.Status__c = '鐢宠珛涓�'; + dr3.Status__c = '浣滄垚涓�'; insert dr3; Event__c event = new Event__c(); @@ -331,7 +337,7 @@ Daily_Report__c dr3 = new Daily_Report__c(); dr3.Reporter__c = UserInfo.getUserId(); dr3.Reported_Date__c = Date.today().addDays(4); - dr3.Status__c = '鐢宠珛涓�'; + dr3.Status__c = '浣滄垚涓�'; insert dr3; Event__c event = new Event__c(); -- Gitblit v1.9.1