| | |
| | | @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( |
| | |
| | | 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); |
| | |
| | | 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); |