From 8badb57ea2c82557850ad5b39281c3e8714eb119 Mon Sep 17 00:00:00 2001
From: liuyan <liuyan@prec-tech.com>
Date: 星期四, 24 十一月 2022 10:08:31 +0800
Subject: [PATCH] 科室信息漏传SPO问题

---
 force-app/main/default/classes/FileUploadControllerTest.cls |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/FileUploadControllerTest.cls b/force-app/main/default/classes/FileUploadControllerTest.cls
index 9a2cdbf..676ac12 100644
--- a/force-app/main/default/classes/FileUploadControllerTest.cls
+++ b/force-app/main/default/classes/FileUploadControllerTest.cls
@@ -1,7 +1,8 @@
 @isTest
 private class FileUploadControllerTest {
     static testMethod void testMethod1() {
-        TestDataUtility.CreatePIPolicyConfiguration('Document');
+        // TestDataUtility.CreatePIPolicyConfiguration('Document');
+        TestDataUtility.CreatePIPolicyConfiguration();
         Account acc = new Account(Name = 'test');
         Map<String,Object> accMap = new Map<String,Object>();
         accMap.put('Account',acc);
@@ -36,6 +37,11 @@
         fuc.refreshFiles();
         fuc.parentId = '';
         fuc.refreshFiles();
+        try{
+            delete file;
+        }catch(Exception e){
+            system.debug('Exception from delete file:'+e.getmessage());
+        }
         Test.stopTest();
     }
     static testMethod void testMethod2() {

--
Gitblit v1.9.1