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
DaGunsterDaGunster 

The manual said ... (TESTING TRIGGERS)

It was okay to write Apex in a trigger. Yes, the manual says it's 'better' to write the code in a class.
But this is my first Apex.
 
So ... how do I put a test onto a trigger?
 
 
jpizzalajpizzala
For production deployments, you will still need to put the testMethods for your Triggers in an Apex Class and make sure you have appropriate coverage.