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/MaintenanceContractTriggerTest.cls | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/force-app/main/default/classes/MaintenanceContractTriggerTest.cls b/force-app/main/default/classes/MaintenanceContractTriggerTest.cls
index 4e07d06..3c23ac6 100644
--- a/force-app/main/default/classes/MaintenanceContractTriggerTest.cls
+++ b/force-app/main/default/classes/MaintenanceContractTriggerTest.cls
@@ -19,7 +19,6 @@
hpOwner2 = new User(Test_staff__c = true, LastName = 'hp2', FirstName = 'owner', Alias = 'hp2', Work_Location__c = '閲嶅簡', CommunityNickname = 'hpOwner2', Email = 'olympus_hpowner@sunbridge.com', Username = 'olympus_hpowner2@sunbridge.com', IsActive = true, EmailEncodingKey = 'ISO-2022-JP', TimeZoneSidKey = 'Asia/Tokyo', LocaleSidKey = 'ja_JP', LanguageLocaleKey = 'ja', ProfileId = p.id);
insert hpOwner2;
-
// 鐥呴櫌銈掍綔銈�
hospital = new Account();
hospital.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP'].id;
@@ -37,7 +36,7 @@
dep.Department_Class__c = strategicDep[0].Id;
dep.Hospital__c = hospital.Id;
insert dep;
-
+
// 瑁藉搧銈掍綔銈�
productA = new Product2( Name='銉嗐偣銉堝晢鍝�');
insert productA;
@@ -83,13 +82,11 @@
contract.Contract_Start_Date__c = Date.today() - 10;
contract.Contract_End_Date__c = Date.today() + 10;
contract.Service_Contract_Staff__c = '00510000002ZZTc';
+ contract.upload_to_RM_time__c = Date.today() + 20;
insert contract;
-
+
}
static testMethod void testMethod1() {
- contract.upload_to_RM_time__c = Datetime.now();
- update contract;
-
contract.All_Amount__c = 11.11;
update contract;
--
Gitblit v1.9.1