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/OFSInsReportLayoutControllerTest.cls | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls b/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls
index fcec175..83e40d5 100644
--- a/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls
+++ b/force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls
@@ -43,7 +43,8 @@
//Profile prof = [select Id from Profile where Name ='901_缁忛攢鍟嗙ぞ鍖烘櫘閫氭潈闄恄2閲嶉獙璇�'];
User loginUser = [Select Id, Alias, Province__c from User where Id =: UserInfo.getUserId()];
loginUser.Job_Category__c = '閿�鍞湇鍔�';
- update loginUser;
+ //update loginUser;
+ loginUser = [Select Id, Alias, Province__c from User where Job_Category__c = '閿�鍞湇鍔�' limit 1];
ir = new Inspection_Report__c(Name = '*', Inspection_Date__c = inspectionDate, Hospital__c = hp.Id);
ir.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Inspection_Report__c' and DeveloperName = 'EndoscopeSystem'].id;
@@ -261,8 +262,10 @@
Test.startTest();
TestRepo repo = new TestRepo();
repo.createInspectionReport(null);
+
repo.initAssets();
repo.sqlIr();
+
String wrongId = repo.ir.Id;
wrongId = wrongId.substring(0, 14) + wrongId.substring(13, 14);
Apexpages.currentPage().getParameters().put('id', wrongId);
--
Gitblit v1.9.1