File tree 1 file changed +3
-0
lines changed
auth/src/test/java/com/firebase/ui/auth/ui
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 26
26
import com .firebase .ui .auth .test_helpers .TestHelper ;
27
27
import com .firebase .ui .auth .ui .idp .IDPSignInContainerActivity ;
28
28
import com .firebase .ui .auth .util .CredentialsAPI ;
29
+ import com .firebase .ui .auth .util .PlayServicesHelper ;
29
30
import com .google .android .gms .auth .api .credentials .IdentityProviders ;
30
31
import com .google .firebase .FirebaseApp ;
31
32
import com .google .firebase .auth .AuthResult ;
@@ -63,6 +64,8 @@ public class ChooseAccountActivityTest {
63
64
public void setUp () {
64
65
MockitoAnnotations .initMocks (this );
65
66
mFirebaseApp = TestHelper .initializeApp (RuntimeEnvironment .application );
67
+ PlayServicesHelper .sApiAvailability = TestHelper .makeMockGoogleApiAvailability ();
68
+
66
69
when (mCredentialsAPI .isPlayServicesAvailable ()).thenReturn (true );
67
70
when (mCredentialsAPI .isCredentialsAvailable ()).thenReturn (true );
68
71
when (mCredentialsAPI .isAutoSignInAvailable ()).thenReturn (true );
You can’t perform that action at this time.
0 commit comments