From b329ab986e250bb27e46ace97cf208f3b26d145a Mon Sep 17 00:00:00 2001
From: FUYU <fuyu@prec-tech.com>
Date: 星期一, 18 十二月 2023 17:38:15 +0800
Subject: [PATCH] 修改复制(不带产品按钮)

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

diff --git a/force-app/main/default/classes/NewAndEditLeadControllerTest.cls b/force-app/main/default/classes/NewAndEditLeadControllerTest.cls
index 81b8b34..9aec75f 100644
--- a/force-app/main/default/classes/NewAndEditLeadControllerTest.cls
+++ b/force-app/main/default/classes/NewAndEditLeadControllerTest.cls
@@ -14,10 +14,12 @@
         strList.add('Lead');
         strList.add('Contact');
         strList.add('Inquiry_form__c');
+        strList.add('LeadV2');
         TestDataUtility.CreatePIPolicyConfigurations(strList);
     }
     static testMethod void testMethod1() {
 
+        Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreateMetaDataUtilityHttpMock());
         Test.startTest();
         Lead leadTest = new Lead();
         Contact cont = new Contact();
@@ -34,12 +36,6 @@
     static testMethod void testMethod3() {
         Lead leadTest = new Lead();
         String url = ApexPages.currentPage().getParameters().put('CF00N10000006ps6f_lkid','000000000000000');
-        // ApexPages.currentPage().getParameters().put('CF00N10000002CvC5_lkid','000000000000000');
-        // ApexPages.currentPage().getParameters().put('CF00N10000002CvC5','000000000000000');
-        // ApexPages.currentPage().getParameters().put('CF00N10000002CvC5','000000000000000');
-        
-        
-        
         url = ApexPages.currentPage().getParameters().put('RecordType','01210000000QiRf');
         Test.startTest();
         try{

--
Gitblit v1.9.1