From cc266a1e4080bb3ecc47ea4a202dd549545111e1 Mon Sep 17 00:00:00 2001
From: 游畅 <youchang@prec-tech.com>
Date: 星期六, 29 四月 2023 16:10:52 +0800
Subject: [PATCH] 贸易合规20230429
---
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