File tree 2 files changed +4
-13
lines changed 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,10 @@ - (void)testVerifyPhoneNumberUIDelegate {
314
314
NSMutableString *fakeRedirectURLString =
315
315
[NSMutableString stringWithString: kFakeRedirectURLStringWithoutReCAPTCHAToken ];
316
316
[fakeRedirectURLString appendString: kFakeReCAPTCHAToken ];
317
- [[_mockAuth authURLPresenter ] canHandleURL: [NSURL URLWithString: fakeRedirectURLString]];
317
+ OCMExpect ([_mockAuth canHandleURL: OCMOCK_ANY]).andDo (^(NSInvocation *invocation) {
318
+ [[_mockAuth authURLPresenter ] canHandleURL: [NSURL URLWithString: fakeRedirectURLString]];
319
+ });
320
+ [_mockAuth canHandleURL: [NSURL URLWithString: fakeRedirectURLString]];
318
321
});
319
322
// Expect view controller dismissal by UIDelegate.
320
323
OCMExpect ([mockUIDelegate dismissViewControllerAnimated: OCMOCK_ANY completion: OCMOCK_ANY]).
Original file line number Diff line number Diff line change @@ -124,18 +124,6 @@ NS_ASSUME_NONNULL_BEGIN
124
124
*/
125
125
- (BOOL )signOutByForceWithUserID : (NSString *)userID error : (NSError *_Nullable *_Nullable)error ;
126
126
127
- /* * @fn canHandleURL:
128
- @brief Whether the specific URL is handled by @c FIRAuth .
129
- @param url The URL received by the application delegate from any of the openURL method.
130
- @return Whether or the URL is handled. YES means the URL is for Firebase Auth
131
- so the caller should ignore the URL from further processing, and NO means the
132
- the URL is for the app (or another libaray) so the caller should continue handling
133
- this URL as usual.
134
- @remarks If swizzling is disabled, URLs received by the application delegate must be forwarded
135
- to this method for phone number auth to work.
136
- */
137
- - (BOOL )canHandleURL : (nonnull NSURL *)url ;
138
-
139
127
@end
140
128
141
129
NS_ASSUME_NONNULL_END
You can’t perform that action at this time.
0 commit comments