From cc7487a59bd4b0fa5bed1dd59f6d0565ace81b8b Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期五, 21 四月 2023 09:48:22 +0800
Subject: [PATCH] opd计划Cl3
---
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