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
Shashank SomwanshiShashank Somwanshi 

we made handler class for trigger then what we test trigger or handler class before deploy ?

Best Answer chosen by Shashank Somwanshi
Martha VMartha V
You test the insert, update, or delete the record that the trigger deals with. For example if your trigger is for an insert (either before or after) of an Account then you write your test class to insert Account records. Both the Handler and the Trigger will be tested by the same code.

All Answers

Martha VMartha V
You test the insert, update, or delete the record that the trigger deals with. For example if your trigger is for an insert (either before or after) of an Account then you write your test class to insert Account records. Both the Handler and the Trigger will be tested by the same code.
This was selected as the best answer
Shashank SomwanshiShashank Somwanshi
Thats cool... thanks @martha V