You need to sign in to do that
Don't have an account?
Brian Bell 41
Testing ConnectApi Code
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?
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?
Thansk & Regards,
Rohit - Manager @ Cyberflix Official (https://cyberflixtvapp.co/)