Created
April 28, 2020 17:23
-
-
Save Feldstrom/075cfc1dcff5ab15a0aa46e24a75192f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
private class customlookupcontroller_test { | |
static testMethod void customlookupcontrollermethod() { | |
//create campaign | |
Campaign camp = new Campaign(); | |
camp.Name = 'test camp'; | |
camp.StartDate = Date.today().addDays(-10); | |
camp.EndDate = Date.today(); | |
camp.Channel__c = 'Direct Sales'; | |
camp.IsActive = true; | |
camp.Event_POC__c = UserInfo.getUserId(); | |
camp.Secondary_Event_POC__c = UserInfo.getUserId(); | |
camp.Location_State__c = 'OH'; | |
camp.Location_Postal_Code__c = '45601'; | |
camp.Location_City__c = 'TEST'; | |
camp.Location_Street_Address__c = 'TEST'; | |
camp.RecordTypeId=Schema.SObjectType.Campaign.getRecordTypeInfosByName().get('Large Event').getRecordTypeId(); | |
insert camp; | |
List<Account> accList = CC_TestUtility.createAccount(1,true); | |
List<Contact> customerContact = CC_TestUtility.createContact(1, true, 'Technician', accList[0].id,'test@clearcaptions.com'); //Modified by Shreya for case-00274489 | |
customLookUpController.fetchLookUpValues('test','Campaign','','Large Event','CC Customer Care Rep',''); | |
customLookUpController.fetchLookUpValues('test','Campaign','','Large Event','System Admin',''); | |
customLookUpController.fetchLookUpValues('test','Campaign','','Hearing Professional','CC Inside Sales Representative',''); | |
customLookUpController.fetchLookUpValues('test','Campaign','','Marketing','CC Inside Sales Representative',''); | |
customLookUpController.fetchLookUpValues('test','Campaign','','none','CC Inside Sales Representative',''); | |
customLookUpController.fetchLookUpValues('test','Campaign','','none','CC Customer Care Rep',''); | |
customLookUpController.fetchLookUpValues('test','Campaign','','none','System Admin',''); | |
customLookUpController.fetchLookUpValues('test','Campaign','','','System Admin',''); | |
customLookUpController.fetchLookUpValues('Test Contact0','Contact','FirstName','','',''); | |
customLookUpController.fetchLookUpValues('Test Contact0','Account','createdDate','','',''); | |
customLookUpController.putRecordSession(customerContact[0]); | |
customLookUpController.putRecordSession(camp); | |
customLookUpController.getSelectEventFromCache(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment