function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ggaopggaop 

Standard Controller for a sObject

I have the following constructor for a Custom Controller extension

 

public MyController(ApexPages.StandardController stdController) {
        this.mya = (MyAccount__c)stdController.getRecord();
    } 

 

How do I create a Controller for testing?

 

Thanks in advance, 

 

J

ggaopggaop
got the answer...