|
102 | 102 | @brief Tests a successful invocation of @c verifyPhoneNumber with recaptcha enterprise enforced |
103 | 103 | */ |
104 | 104 | func testVerifyPhoneNumberWithRceEnforceSuccess() async throws { |
105 | | - initApp(#function, mockRecaptchaVerifier: FakeAuthRecaptchaVerifier(captchaResponse: kCaptchaResponse)) |
| 105 | + initApp( |
| 106 | + #function, |
| 107 | + mockRecaptchaVerifier: FakeAuthRecaptchaVerifier(captchaResponse: kCaptchaResponse) |
| 108 | + ) |
106 | 109 | let auth = try XCTUnwrap(PhoneAuthProviderTests.auth) |
107 | 110 | // TODO: Figure out how to mock objective C's FIRRecaptchaGetToken response |
108 | 111 | let provider = PhoneAuthProvider.provider(auth: auth) |
|
205 | 208 | /// @brief Tests a successful invocation of @c verifyPhoneNumber with recaptcha enterprise in |
206 | 209 | /// audit mode |
207 | 210 | func testVerifyPhoneNumberWithRceAuditSuccess() async throws { |
208 | | - initApp(#function, mockRecaptchaVerifier: FakeAuthRecaptchaVerifier(captchaResponse: kCaptchaResponse)) |
| 211 | + initApp( |
| 212 | + #function, |
| 213 | + mockRecaptchaVerifier: FakeAuthRecaptchaVerifier(captchaResponse: kCaptchaResponse) |
| 214 | + ) |
209 | 215 | let auth = try XCTUnwrap(PhoneAuthProviderTests.auth) |
210 | 216 | let provider = PhoneAuthProvider.provider(auth: auth) |
211 | 217 | rpcIssuer.rceMode = "AUDIT" |
|
857 | 863 | .replacingOccurrences(of: ")", with: "") |
858 | 864 | FirebaseApp.configure(name: strippedName, options: options) |
859 | 865 | let auth = if let mockRecaptchaVerifier { |
860 | | - Auth(app: FirebaseApp.app(name: strippedName)!, backend: authBackend) |
| 866 | + Auth( |
| 867 | + app: FirebaseApp.app(name: strippedName)!, |
| 868 | + backend: authBackend, |
| 869 | + recaptchaVerifier: mockRecaptchaVerifier |
| 870 | + ) |
861 | 871 | } else { |
862 | 872 | Auth(app: FirebaseApp.app(name: strippedName)!, backend: authBackend) |
863 | 873 | } |
|
0 commit comments