From 65672b84a76127496e7dcff8e99c473b35a8d234 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 15 四月 2022 16:42:04 +0800
Subject: [PATCH] 之前会传一个1900-1-1的日期,导致报错,现在改为传null
---
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