You need to sign in to do that
Don't have an account?
JohnTaylorUK
Help with very basic test class
Hi All,
I have a very basic trigger that moves a text field into an email field, to enable a workflow to send out an email to this address.
I would like to write a test class for this trigger to help keep everyting in order
trigger UpdateEmailFieldWithRealEmail on Offer__c (before insert,before Update) { for (Offer__c OFF : Trigger.new) { OFF.candidates_Email_Address_For_Chases__c = OFF.Candidates_Email_Address__c; } }
The trigger itself is very simple and does what I needed but I could now really do this help to write the test class
Any pointers would be great
Thanks
John
This is your test class
See this for more :http://forceschool.blogspot.com/search/label/Apex%20Triggers