From 552f32c93251191103a633ca292c06a445e2551f Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期二, 15 三月 2022 18:25:31 +0800
Subject: [PATCH] OBPM备品相关修改 & 【委托】【phase5上线课题131】-增加明细的时长字段“提交申请到备品出库时长”

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

diff --git a/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls b/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls
index 3d0ecb5..e38c9ec 100644
--- a/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls
+++ b/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls
@@ -2,7 +2,7 @@
 public class TransferShippmentReceived5ControllerTest {
     static private User u;
 
-    @testSetup
+    // @testSetup
     static void setupTestData1() {
         StaticParameter.EscapeNFM001AgencyContractTrigger = true;
         StaticParameter.EscapeNFM001Trigger = true;
@@ -336,7 +336,7 @@
     }
     @isTest
     public static void test_init() {
-        //setupTestData1();
+        setupTestData1();
         Test.startTest();
         System.runAs(u) {
             List<TransferApplySummary__c> esList;
@@ -374,7 +374,8 @@
 
     @isTest
     public static void test_save() {
-        //setupTestData1();
+        setupTestData1();
+        Oly_TriggerHandler.bypass('TransferApplyHandler');
         System.runAs(u) {
 
             List<TransferApplySummary__c> esList;
@@ -388,10 +389,10 @@
             controller.init();
 
             System.assertEquals(true, controller.esdList[0].editable);
-            Test.startTest();
+            // Test.startTest();
             controller.esdList[0].rec.Inspection_result_after__c = 'OK';
             controller.save();
-            Test.stopTest();
+            // Test.stopTest();
 
             List<TransferApplyDetail__c> erList;
             erList = [select Inspection_result_after__c from TransferApplyDetail__c WHERE Id=:controller.esdList[0].rec.Id];

--
Gitblit v1.9.1