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/BeforeUpsertReportHandlerTest.cls |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/BeforeUpsertReportHandlerTest.cls b/force-app/main/default/classes/BeforeUpsertReportHandlerTest.cls
index 34b682a..6fd9e38 100644
--- a/force-app/main/default/classes/BeforeUpsertReportHandlerTest.cls
+++ b/force-app/main/default/classes/BeforeUpsertReportHandlerTest.cls
@@ -1,5 +1,9 @@
 @isTest
 private class BeforeUpsertReportHandlerTest {
+    @TestSetup
+    static void makeData(){
+        TestDataUtility.CreatePIPolicyConfiguration('Rental_Apply__c');
+    }
     static testMethod void testMethod1() {
          RecordType rectOpp = [select id from RecordType where IsActive = true and SobjectType = 'Opportunity' and DeveloperName = 'Opportunity' ];
         
@@ -38,6 +42,7 @@
         oPDPlan0.NoOpp_Reason__c = 'HCP瀵瑰簲';
         oPDPlan0.Related_Opportunity1_ID__c =opp1.id;
         oPDPlan0.Account_Laboratory__c =dep.Id;
+        oPDPlan0.OPDType__c = '浜嬩欢';
         insert oPDPlan0;
         
 
@@ -105,6 +110,7 @@
         oPDPlan0.Status__c = '鑽夋涓�';
         oPDPlan0.OPDPlan_ImplementDate__c = Date.today().addDays(1);
         oPDPlan0.NoOpp_Reason__c = 'HCP瀵瑰簲';
+        oPDPlan0.OPDType__c = '浜嬩欢';
         insert oPDPlan0;
 
         // 浜у搧

--
Gitblit v1.9.1