From 2f1466af31796c1a963f26e86038ddc84471ed2e Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期六, 02 四月 2022 17:42:24 +0800
Subject: [PATCH] 目标录入相关判断修改
---
force-app/main/default/classes/WeeklyReportCmpTest.cls | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/WeeklyReportCmpTest.cls b/force-app/main/default/classes/WeeklyReportCmpTest.cls
index 5c88abf..29f935a 100644
--- a/force-app/main/default/classes/WeeklyReportCmpTest.cls
+++ b/force-app/main/default/classes/WeeklyReportCmpTest.cls
@@ -20,6 +20,15 @@
public static String report_id;
public static String report_header_id;
+ @testSetup
+ static void setUp(){
+ TestDataUtility.CreatePIPolicyConfigurations( new string[]{'Agency_Contact__c'});
+ }
+ @isTest
+ static void TestgetAwsurl(){
+ WeeklyReportCmp.getAwsurl('Agency_Contact__c');
+ }
+
/* 鐥呴櫌銆傘偝銉炽偪銈儓銆併儲銉笺偠銉笺�併偒銉兂銉�銉笺仾銇┿伄鍒濇湡銉囥兗銈夸綔銈�
*/
private static void testInit() {
@@ -175,7 +184,7 @@
testInit();
System.runAs(user) {
- List<Map<String,String>> doctor_data = WeeklyReportCmp.getDoctorList(agency_hospital_link.Id);
+ List<Map<String,String>> doctor_data = WeeklyReportCmp.getDoctorList(agency_hospital_link.Id).values();
Map<String,String> test_data = new Map<String,String>();
test_data.put('label', agency_contact.Name);
test_data.put('value', agency_contact.Id);
--
Gitblit v1.9.1