You need to sign in to do that
Don't have an account?
Christopher Pezza
Test Coverage on a function
public void deleteAttachment(){ Attachment attc = [SELECT Id, Name from Attachment WHERE Id = :attachId]; delete(attc); }How would I write test coverage for this function?
One thing I noticed in your other reply is that you have hard coded somes IDs, this will cause an issue when deploying code to other environments and cause the test to fail.
All Answers
Something like:
Thats the code for visual force section on how it passes back. Uses a onclick command to pass the id to the javascript that then goes to the asctionfunction
One thing I noticed in your other reply is that you have hard coded somes IDs, this will cause an issue when deploying code to other environments and cause the test to fail.