You need to sign in to do that
Don't have an account?
Mikey999
Write test class for before delete
I have the following trigger, I have absolutely no idea how to write a test class to move this into production. Not sure where to start, I am not a developer just needed this validation.. Starting to learn though.. Thanks in advance for any help.
1 2 3 4 5 6 7 |
trigger OppVIPnondelete on Opportunity (before delete) { |
You placed a new question ? You should have PM me ;)
Thanks sorry next time I will.. So I created the Apex Class for testing then I went to deploy and setup a outbound change set with both the trigger and the test class. I then uploaded the the change set to production, then in production I ran a validate on the complete change set. Is that correct? When I ran the validate I recieved the following error: Thanks again. The trigger works perfectly in dev.. Just moving it over is not very easy.. Thanks again!
I guess you have another trigger in place that is causing trouble, You need to fix that
Trigger Name : opportunityName
Check the above trigger. And now I guess you can do the fix ;)