Hot answers tagged

1

This may be one of the few situations where it's appropriate to use seeAllData=true Before you resort to that though, you should consider making a query "selector" class instead of performing a query directly in the code being tested. Something like public with sharing class SurveyQuerySelector{ // Have a static collection of data that you can ...


1

Yes, you can obviously do it. If you want to be quick and dirty about it you can create 2 Sites with public Rest API and pass through those or you can create Authentification Providers with Named credentials, or create Connected Apps


Only top voted, non community-wiki answers of a minimum length are eligible