You need to sign in to do that
Don't have an account?
JoshTonks
Help required with a test class Save Function
Hi Guys,
I dont exactly understand what i need to write for a test class for this
Kind Regards
I dont exactly understand what i need to write for a test class for this
public PageReference save1(){ List<RAM_Quote__c> UpdatedQO = new list<RAM_Quote__c>(); if(!QuoteOffers.isEmpty()){ for(RAM_Quote__c Id : QuoteOffers){ UpdatedQO.add(id); Id.Option_1_Selected__c = TRUE; } Update UpdatedQO; } PageReference pr = new PageReference('https://google.com'); pr.setRedirect(true); return pr; }Ive done controller extension test classes but it didnt seem to work. Would anybody be able to give me some pointers on this please.
Kind Regards