Guest User

Untitled

a guest
Mar 18th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Contact con2 = new Contact(FirstName = 'Test1', LastName = 'Test2',
  2. MobilePhone='222-222-2222', Email='test1@test.com');
  3. insert con2;
  4.  
  5. Contact con_a = [SELECT Id from contact where email = 'test1@test.com' LIMIT 1];
  6.  
  7. User signUpFormUser = [SELECT Id, FirstName FROM User WHERE FirstName = 'SignUpForm' LIMIT 1];
  8. System.runAs(signUpFormUser){
  9. Contact con_s = [SELECT Id from contact where email = 'test1@test.com' LIMIT 1];
  10.  
  11. }
Add Comment
Please, Sign In to add comment