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/NFM001TriggerTest.cls |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/NFM001TriggerTest.cls b/force-app/main/default/classes/NFM001TriggerTest.cls
index f6d3cf4..8e6840c 100644
--- a/force-app/main/default/classes/NFM001TriggerTest.cls
+++ b/force-app/main/default/classes/NFM001TriggerTest.cls
@@ -92,7 +92,7 @@
         NFM001Controller.debug_msg = '';
         update company;
         departAssert = [Select Id, Name, Is_Active__c, DepartmentEffectiveDateTo__c from Account where Id = :depart.Id];
-        System.assertEquals('鑽夋涓�', departAssert.Is_Active__c);
+        System.assertEquals('鐒″姽', departAssert.Is_Active__c);
         departAssert = [Select Id, Name, Is_Active__c, DepartmentEffectiveDateTo__c from Account where Id = :depart2.Id];
         System.assertEquals('鏈夊姽', departAssert.Is_Active__c);
         System.Test.stopTest();
@@ -556,6 +556,8 @@
         Contact contact2 = new Contact();
         User user = new User();
         Agency_Hospital_Link__c agency_hospital_link = new Agency_Hospital_Link__c();
+        User thisUser = [select Id from User where Id = :UserInfo.getUserId() ];
+        System.runAs ( thisUser ){
         // 鍙栧紩鍏�
         account1.Name = 'test1鍖婚櫌';
         account1.RecordTypeId = '01210000000QemG';
@@ -610,6 +612,7 @@
         System.assertEquals('test1鍖婚櫌', agencylistCheck[0].Name);        
 
     }
+    }
     // Resendtest
     static testMethod void resend_test() {
         // 鐥呴櫌 銇� recode type 銈掑彇寰�

--
Gitblit v1.9.1