How can we cover code in test class under Site.createPortalUser?
56361
Site.createPortalUser() returning null in test context
1005
How do I test a private function or a class that has private methods, fields or inner classes?
26905
Anonymous user feedback now in testing
58899
What setup code should go in Form Constructors versus Form Load event?
106153
Ignore code coverage for unit tests in EclEmma
119783
How to get Custom Settings in Apex Test code?
109459
Test Class for HTTP Callout failing
150306
Constructor not defined error in test code
13138
How to pass java code a parameter from maven for testing
1412
How do I increase my code coverage, or why can't I cover these lines?
14663
Preventing code injection without limiting user input?
145861
Apex Code Coverage: Test classes are included with 0% in overall code coverage calculation
10536
Making code internal but available for unit testing from other projects
62437
How do I safely "eval" user code in a webpage?
95732
Use of @IsTest versus testMethod and location of test methods in classes
13094
Which event should we subscribe to if we want code to be triggered when a new user registers?
74461
Cover aggregate Result Wrapper Class in test class