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
Sana123Sana123 

How to write test classes for trigger.

I have a trigger in which addition aand subtractionis going for both before insert and update.
AbhinavAbhinav (Salesforce Developers) 
Hi Sana,

Please check below trailhead you will get idea how to write test class for trigger.

https://trailhead.salesforce.com/content/learn/modules/apex_testing/apex_testing_triggers

If it helps mark it as best answer.

Thanks!