From cd730d0b1a775abacfba06003bb58327d5d1fb3c Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 02 二月 2023 12:23:31 +0800
Subject: [PATCH] 同步数据
---
force-app/main/default/classes/QISPDFControllerTest.cls | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/QISPDFControllerTest.cls b/force-app/main/default/classes/QISPDFControllerTest.cls
index 71ad546..49a9357 100644
--- a/force-app/main/default/classes/QISPDFControllerTest.cls
+++ b/force-app/main/default/classes/QISPDFControllerTest.cls
@@ -21,7 +21,10 @@
*/
@isTest
private class QISPDFControllerTest {
-
+ @TestSetup
+ static void makeData(){
+ TestDataUtility.CreatePIPolicyConfigurations(new string[]{'QIS_Report__c','Document'});
+ }
static testMethod void myUnitTest() {
QIS_Report__c q = new QIS_Report__c();
q.RC__c = UserInfo.getUserId();
@@ -35,4 +38,9 @@
QISPDFController controller = new QISPDFController();
controller.init();
}
+
+ static testMethod void Test1(){
+ QISPDFController.getImageByUrl('https://ocsm--stagefull--c.documentforce.com/servlet/rtaImage?eid=a0f1000000cS7qH&refid=0EM10000002WIgq');
+ QISPDFController.getImageByUrl('https://ocsm--stagefull--c.documentforce.com/servlet/rtaImage?eid=a0f1000000cS7qH&feoid=00N10000006P4rz');
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1