public with sharing class AuthProviderCtrlTest {

    public static void getAuthProviderTest() {

            List<AuthProvider> providers = AuthProviderCtrl.getProviders()

            System.assertEquals(0, providers.size(), 'It is getting providers');

I was expecting my test pass but I'm seeing the real providers. If you see, I'm not adding SeeAllData=true. Why is this possible?

  • 2
    Setup information usually is visible without see all data. This is why you can query for users without the need to create any for instance. – gNerb Sep 5 '19 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.