Skip to content

Commit 2f1b343

Browse files
committed
fix: add applicationContext parameter to signInWithProvider and submitVerificationCode tests
1 parent 91e451f commit 2f1b343

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

auth/src/test/java/com/firebase/ui/auth/configuration/auth_provider/OAuthProviderFirebaseAuthUITest.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ class OAuthProviderFirebaseAuthUITest {
131131
}
132132

133133
instance.signInWithProvider(
134+
applicationContext,
134135
config = config,
135136
activity = mockActivity,
136-
provider = githubProvider
137+
provider = githubProvider,
137138
)
138139

139140
// Verify OAuth provider was built and used
@@ -186,6 +187,7 @@ class OAuthProviderFirebaseAuthUITest {
186187
}
187188

188189
instance.signInWithProvider(
190+
applicationContext,
189191
config = config,
190192
activity = mockActivity,
191193
provider = yahooProvider
@@ -231,6 +233,7 @@ class OAuthProviderFirebaseAuthUITest {
231233

232234
try {
233235
instance.signInWithProvider(
236+
applicationContext,
234237
config = config,
235238
activity = mockActivity,
236239
provider = githubProvider
@@ -271,6 +274,7 @@ class OAuthProviderFirebaseAuthUITest {
271274

272275
try {
273276
instance.signInWithProvider(
277+
applicationContext,
274278
config = config,
275279
activity = mockActivity,
276280
provider = microsoftProvider

auth/src/test/java/com/firebase/ui/auth/configuration/auth_provider/PhoneAuthProviderFirebaseAuthUITest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ class PhoneAuthProviderFirebaseAuthUITest {
317317
}
318318

319319
val result = instance.submitVerificationCode(
320+
applicationContext,
320321
config = config,
321322
verificationId = "test-verification-id",
322323
code = "123456",
@@ -359,6 +360,7 @@ class PhoneAuthProviderFirebaseAuthUITest {
359360
}
360361

361362
val result = instance.signInWithPhoneAuthCredential(
363+
applicationContext,
362364
config = config,
363365
credential = mockCredential
364366
)
@@ -399,6 +401,7 @@ class PhoneAuthProviderFirebaseAuthUITest {
399401
}
400402

401403
val result = instance.signInWithPhoneAuthCredential(
404+
applicationContext,
402405
config = config,
403406
credential = mockCredential
404407
)

0 commit comments

Comments
 (0)