File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
FirebaseCombineSwift/Tests/Unit/Auth Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ class UserTests: XCTestCase {
87
87
88
88
class MockSetAccountInfoResponse : FIRSetAccountInfoResponse { }
89
89
90
+ class MockSecureAccessResponse : FIRSecureTokenResponse {
91
+ override var accessToken : String { return " ACCESS_TOKEN " }
92
+ }
93
+
90
94
class MockVerifyPhoneNumberResponse : FIRVerifyPhoneNumberResponse {
91
95
fileprivate var providerCredentials : ProviderCredentials !
92
96
@@ -228,6 +232,11 @@ class UserTests: XCTestCase {
228
232
callback ( MockGetOOBConfirmationCodeResponse ( ) , nil )
229
233
}
230
234
}
235
+
236
+ override func secureToken( _ request: FIRSecureTokenRequest ,
237
+ callback: @escaping FIRSecureTokenResponseCallback ) {
238
+ callback ( MockSecureAccessResponse ( ) , nil )
239
+ }
231
240
}
232
241
233
242
class MockGetOOBConfirmationCodeResponse : FIRGetOOBConfirmationCodeResponse {
You can’t perform that action at this time.
0 commit comments