• Brian Bell 41
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi, I am trying to write test classes for code that accepts a Connect.Community object as an arguement and then uses that community to determine behavior (for example, looking up specific records).  The methods used to get communites on the ConnectApi requires SeeAllData=true, however, I want to be able to write my tests so that they can run in a data silo.

Is there a way I can abstract my call to get communities outside of the test context so that I don't have to run tests with SeeAllData enabled?