From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新

---
 force-app/main/default/classes/RentalApplyBeforeUpdateTriggerTest.cls |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/RentalApplyBeforeUpdateTriggerTest.cls b/force-app/main/default/classes/RentalApplyBeforeUpdateTriggerTest.cls
index 7bb3dad..d66299c 100644
--- a/force-app/main/default/classes/RentalApplyBeforeUpdateTriggerTest.cls
+++ b/force-app/main/default/classes/RentalApplyBeforeUpdateTriggerTest.cls
@@ -1,7 +1,10 @@
 @isTest
 private class RentalApplyBeforeUpdateTriggerTest {
     private static Id pricebookId = ControllerUtil.getStandardPricebook().Id;
-
+    @TestSetup
+    static void makeData(){
+        TestDataUtility.CreatePIPolicyConfiguration();
+    }
     static testMethod void myUnitTest() {
         OlympusCalendar__c oc1 = new OlympusCalendar__c(Date__c = Date.today().addDays(1), ChangeToHoliday__c=false, ChangeToWorkday__c=true);
         OlympusCalendar__c oc2 = new OlympusCalendar__c(Date__c = Date.today().addDays(2), ChangeToHoliday__c=false, ChangeToWorkday__c=true);

--
Gitblit v1.9.1