Discussions tagged with 'Test SetCurrentPage' Mohit Why should we use the Test.setCurrentPage() method in Test class on salesforce? Parul replied 7 years, 4 months ago · 4 Members · 3 Posts Salesforce® Discussions Mohit Why we use the Test.setCurrentPage(...) method in Salesforce and why should we in our apex controller unit test? Gourav replied 9 years, 3 months ago · 2 Members · 1 Post Salesforce® Discussions Viewing 1 - 2 of 2 discussions