Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contact con2 = new Contact(FirstName = 'Test1', LastName = 'Test2',
- MobilePhone='222-222-2222', Email='test1@test.com');
- insert con2;
- Contact con_a = [SELECT Id from contact where email = 'test1@test.com' LIMIT 1];
- User signUpFormUser = [SELECT Id, FirstName FROM User WHERE FirstName = 'SignUpForm' LIMIT 1];
- System.runAs(signUpFormUser){
- Contact con_s = [SELECT Id from contact where email = 'test1@test.com' LIMIT 1];
- }
Add Comment
Please, Sign In to add comment