You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since ConnectAPIs are not accessible in data silo'd tests, it would be great to see these examples reworked to use a mock/stubbing framework instead of requiring tests to see all data in an org.
Financial Force has published a robust example of a mock/stubbing framework but, it would be fantastic to have something for salesforce developers leveraging Connect APIs like this to be able to plug-and-play from this repo.
The text was updated successfully, but these errors were encountered:
Using SeeAllData=True is against best practices documented https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_seealldata_using.htm
Since ConnectAPIs are not accessible in data silo'd tests, it would be great to see these examples reworked to use a mock/stubbing framework instead of requiring tests to see all data in an org.
Financial Force has published a robust example of a mock/stubbing framework but, it would be fantastic to have something for salesforce developers leveraging Connect APIs like this to be able to plug-and-play from this repo.
The text was updated successfully, but these errors were encountered: