Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static testMethod void addEmail(){
- Lead lead = createLead_basic();
- lead.Email = 'jsmith@smithandco.com';
- Test.startTest();
- update lead;
- Test.stopTest();
- }
- @isTest
- private class Test_Global_c {
- /**
- * INSERT PARDOT CONNECTOR EMAIL
- */
- public static Global__c insertPardotConnectorEmail(){
- //Create test data
- Global__c setting = new Global__c(
- Name = 'Pardot Connector Email',
- Value__c = 'pardot+admin@raprec.com'
- );
- Database.insert(setting);
- return setting;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement