Skip to content

Commit 9ded06b

Browse files
authored
Fix newly failing auth combine test (#8271)
1 parent 8e427cc commit 9ded06b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

FirebaseCombineSwift/Tests/Unit/Auth/UserTests.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ class UserTests: XCTestCase {
8787

8888
class MockSetAccountInfoResponse: FIRSetAccountInfoResponse {}
8989

90+
class MockSecureAccessResponse: FIRSecureTokenResponse {
91+
override var accessToken: String { return "ACCESS_TOKEN" }
92+
}
93+
9094
class MockVerifyPhoneNumberResponse: FIRVerifyPhoneNumberResponse {
9195
fileprivate var providerCredentials: ProviderCredentials!
9296

@@ -228,6 +232,11 @@ class UserTests: XCTestCase {
228232
callback(MockGetOOBConfirmationCodeResponse(), nil)
229233
}
230234
}
235+
236+
override func secureToken(_ request: FIRSecureTokenRequest,
237+
callback: @escaping FIRSecureTokenResponseCallback) {
238+
callback(MockSecureAccessResponse(), nil)
239+
}
231240
}
232241

233242
class MockGetOOBConfirmationCodeResponse: FIRGetOOBConfirmationCodeResponse {

0 commit comments

Comments
 (0)