You need to sign in to do that
Don't have an account?
DaGunster
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?
jpizzala
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.