Activity › Forums › Salesforce® Discussions › How to cover PageReference from test class in Apex in Salesforce?

  • How to cover PageReference from test class in Apex in Salesforce?

    Posted by Anjali on September 24, 2020 at 2:39 PM

    How to cover PageReference from test class in Apex in Salesforce?

    Deepak replied 6 years ago 2 Members · 1 Reply
  • 1 Reply
  • Deepak

    Member
    September 24, 2020 at 5:33 PM

    Create TestFactory class with @isTest annotation to exclude from organization code size limit . @testSetup to create test records once in a method and use in every test method in the test class.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos