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
System Administrator 224System Administrator 224 

Social.InboundSocialPostHandler Test Class

Salesforce supports replacing the standard Social.InboundSocialPostHandler with a custom apex class to provide custom handling of social media posts sent from Social Studio. Unfortunately although Salesforce provides the source code for Social.InboundSocialPostHandler as a starting point for customization, they do not provide links to the associated test class in the documentation, without which any code cannot be deployed to production due to insufficient test coverage. Can anyone provide a test class for the standard Social.InboundSocialPostHandler?

 
Dave HummDave Humm
Salesforce have provided a standard test class here
https://help.salesforce.com/HTViewHelpDoc?id=social_customer_service_apexclass_test.htm&language=en_US#social_customer_service_apexclass_test (https://help.salesforce.com/HTViewHelpDoc?id=social_customer_service_apexclass_test.htm&language=en_US#social_customer_service_apexclass_test)