From 9b197b7fac92278fb591ea8f4942c7d5687cb5ce Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期一, 28 三月 2022 18:01:22 +0800
Subject: [PATCH] LJPH-C8FB4P【委托】配合PBI设备覆盖率的数据准备0328

---
 force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls b/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls
index 30ed15c..f47f8e0 100644
--- a/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls
+++ b/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls
@@ -15,6 +15,11 @@
     static void setupTestData1() {
         // OLY_OCM-643 杩藉姞EscapeNFM001Trigger
         ControllerUtil.EscapeNFM001Trigger = true;
+        ControllerUtil.EscapeMaintenanceContractAfterUpdateTrigger = true;
+        StaticParameter.EscapeNFM001Trigger = true;
+        StaticParameter.EscapeNFM001AgencyContractTrigger = true;
+        StaticParameter.EscapeNFM001AgencyContractTrigger2 = true;
+        StaticParameter.EscapeMaintenanceContractAfterUpdateTrigger = true;
         // 鐥呴櫌銈掍綔銈�
         Account hospital = new Account();
         hospital.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP'].id;
@@ -326,7 +331,7 @@
             Test.startTest();
             InventoryAutoGiveupBatch batch = new InventoryAutoGiveupBatch();
             batch.emailMessages.add('TestMailMessage');
-            Id execBTId = Database.executeBatch(batch, 200);
+            Id execBTId = Database.executeBatch(batch, 1);
             Test.stopTest();
             System.assert(String.isNotBlank(execBTId));
             // 銈ㄣ儵銉笺儭銉笺儷銉嗐偣銉堛伄銇熴倎 鍏遍�欰ssert浣跨敤銇椼伨銇涖倱

--
Gitblit v1.9.1