2 件の回答
You write a test class for this the same way that you would any other:- Set up some data for the controller to access (in this case it looks like User_Access__c and Cash_Audit__c records)- Instantiate the controller - as its custom you don't need to pass any parameters- Execute a method/methods- Verify the behaviour with asserts.The fact that the class is used as a controller is fairly immaterial.