From 4420517bbbffea48cabe7a7dcdf2e1c4b440fc85 Mon Sep 17 00:00:00 2001
From: GWY <guweiyi@prec-tech.com>
Date: 星期一, 30 五月 2022 16:15:26 +0800
Subject: [PATCH] 两个LS特殊条件在说明的增减
---
force-app/main/default/classes/NewCrossRegionalControllerText.cls | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/NewCrossRegionalControllerText.cls b/force-app/main/default/classes/NewCrossRegionalControllerText.cls
index 138fbef..468555f 100644
--- a/force-app/main/default/classes/NewCrossRegionalControllerText.cls
+++ b/force-app/main/default/classes/NewCrossRegionalControllerText.cls
@@ -1,5 +1,11 @@
@isTest
private class NewCrossRegionalControllerText {
+
+ @TestSetup
+ static void setup(){
+ TestDataUtility.CreatePIPolicyConfigurations(new string[]{'Opportunity','SBG001','Contact'});
+ }
+
static testMethod void testMethod1() {
List<RecordType> rectIE = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = 'Customer IE'];
Account accIE = new Account(
@@ -57,6 +63,12 @@
TradeType__c = 'Taxation'
);
insert opp1;
+
+ OpportunityContactRole ocr = new OpportunityContactRole(OpportunityId=opp1.Id,ContactId=con.Id,Role = 'End user' , IsPrimary = true);
+ insert ocr;
+
+
+
PageReference page = new PageReference('/apex/NewCrossHighOpportunity?accid=' + accIE.Id + '&conId=' + con.Id);
System.Test.setCurrentPage(page);
@@ -134,6 +146,9 @@
TradeType__c = 'Taxation'
);
insert opp1;
+
+ OpportunityContactRole ocr = new OpportunityContactRole(OpportunityId=opp1.Id,ContactId=con.Id,Role = 'End user' , IsPrimary = true);
+ insert ocr;
PageReference page = new PageReference('/apex/NewCrossRegionalSalesOpportunity?accid=' + accIE.Id + '&conId=' + con.Id);
System.Test.setCurrentPage(page);
--
Gitblit v1.9.1