forcedotcom / forcedotcom/ConnectApiHelper

Remove dependency to SeeAllData

Open
#31 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
Apex
Stars
105
Forks
81
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/apex-enterprise-patterns/fflib-apex-mocks) 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.