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(seeAllData=false) | |
public with sharing class LeadBuilder { | |
private Lead testLead = | |
new Lead( | |
FirstName = 'test-FirstName', | |
LastName = 'test-LastName', | |
Email = 'test@email.com', | |
Phone = '01234 567 890', | |
Street__c = 'test street', | |
City__c = 'test city', |
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
global class GoogleInternalRegHandler implements Auth.RegistrationHandler{ | |
global User createUser(Id portalId, Auth.UserData data){ | |
User u = [SELECT Id FROM user WHERE GoogleID__c =: data.identifier]; | |
return u; | |
} | |
global void updateUser(Id userId, Id portalId, Auth.UserData data){ | |
} | |
} |