Skip to content

Commit 86af9e1

Browse files
committed
Play Services helper
Change-Id: I5674b71791cb47c79dfbb6d167eb67c0b95d9ee1
1 parent 7979297 commit 86af9e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

auth/src/test/java/com/firebase/ui/auth/ui/ChooseAccountActivityTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.firebase.ui.auth.test_helpers.TestHelper;
2727
import com.firebase.ui.auth.ui.idp.IDPSignInContainerActivity;
2828
import com.firebase.ui.auth.util.CredentialsAPI;
29+
import com.firebase.ui.auth.util.PlayServicesHelper;
2930
import com.google.android.gms.auth.api.credentials.IdentityProviders;
3031
import com.google.firebase.FirebaseApp;
3132
import com.google.firebase.auth.AuthResult;
@@ -63,6 +64,8 @@ public class ChooseAccountActivityTest {
6364
public void setUp() {
6465
MockitoAnnotations.initMocks(this);
6566
mFirebaseApp = TestHelper.initializeApp(RuntimeEnvironment.application);
67+
PlayServicesHelper.sApiAvailability = TestHelper.makeMockGoogleApiAvailability();
68+
6669
when(mCredentialsAPI.isPlayServicesAvailable()).thenReturn(true);
6770
when(mCredentialsAPI.isCredentialsAvailable()).thenReturn(true);
6871
when(mCredentialsAPI.isAutoSignInAvailable()).thenReturn(true);

0 commit comments

Comments
 (0)