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
JoshTonksJoshTonks 

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
 
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