@fractastical testMethod


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1.  
  2. public static testMethod void t1() {
  3.  
  4. //setup test data
  5.  
  6. Test.startTest();
  7.  
  8. User u = TestUtility.createTestUser([select id, name from Profile where name='Standard User' limit 1]);
  9.  
  10. System.runAs(u) {
  11.  
  12.  
  13.  
  14. }
  15.  
  16. Test.stopTest();
  17.  
  18. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.