You need to sign in to do that
Don't have an account?
dlCamelot
Test Class for FeedItem Errors
Created 85% of a test class that covers CollaborationGroups and FeedItems created. How can I test that an error is properly being displayed on a FeedItem as it's created?
Trigger Portion I'm trying to cover:
FeedItem List --> AddError
Best answer gets voted on!
Trigger Portion I'm trying to cover:
FeedItem List --> AddError
Best answer gets voted on!
try {
// write code to make validation happen
}
catch( DMLException e ) {
// assert the error message
}