File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/test/java/com/firebase/ui/auth/testhelpers Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ dependencies {
55
55
56
56
testImplementation ' junit:junit:4.12'
57
57
// noinspection GradleDynamicVersion
58
- testImplementation ' org.mockito:mockito-core:2.15.+ '
58
+ testImplementation ' org.mockito:mockito-core:2.18.3 '
59
59
testImplementation ' org.robolectric:robolectric:3.7'
60
60
testImplementation ' com.facebook.android:facebook-login:4.32.0'
61
61
testImplementation(" com.twitter.sdk.android:twitter-core:3.1.1@aar" ) { transitive = true }
Original file line number Diff line number Diff line change @@ -127,11 +127,13 @@ private static void injectMockFirebaseAuth(FirebaseApp app) {
127
127
instances .put (id , mock (FirebaseAuth .class ));
128
128
}
129
129
130
+ FirebaseAuth auth = FirebaseAuth .getInstance (app );
130
131
break ;
131
132
}
132
133
}
133
134
134
- when (FirebaseAuth .getInstance (app ).setFirebaseUIVersion (anyString ()))
135
+ FirebaseAuth mockAuth = FirebaseAuth .getInstance (app );
136
+ when (mockAuth .setFirebaseUIVersion (anyString ()))
135
137
.thenReturn (Tasks .<Void >forResult (null ));
136
138
}
137
139
You can’t perform that action at this time.
0 commit comments