Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. static testMethod void addEmail(){
  2. Lead lead = createLead_basic();
  3. lead.Email = 'jsmith@smithandco.com';
  4.  
  5. Test.startTest();
  6. update lead;
  7. Test.stopTest();
  8. }
  9.  
  10. @isTest
  11. private class Test_Global_c {
  12.  
  13. /**
  14. * INSERT PARDOT CONNECTOR EMAIL
  15. */
  16. public static Global__c insertPardotConnectorEmail(){
  17. //Create test data
  18. Global__c setting = new Global__c(
  19. Name = 'Pardot Connector Email',
  20. Value__c = 'pardot+admin@raprec.com'
  21. );
  22.  
  23. Database.insert(setting);
  24. return setting;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement