aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Auth/Tests
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2017-09-05 23:16:28 -0700
committerGravatar GitHub <noreply@github.com>2017-09-05 23:16:28 -0700
commit954484c4c44036c9b4e67aa1f81c87345675e289 (patch)
tree8722f7e786004ca0bfeccf3f7cdcb1bdba3752bd /Example/Auth/Tests
parentdafdf26603207af61acc0be39115f57ce5ad959b (diff)
Removes canHandleURL from FIRAuthInternal (#235)
* Removes canHandleURL from FIRAuthInternal Removes canHandleURL from FIRAuth_Internal and makes small modification to FIRPhoneAuthProvider unit test. * Addresses comment
Diffstat (limited to 'Example/Auth/Tests')
-rw-r--r--Example/Auth/Tests/FIRPhoneAuthProviderTests.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Example/Auth/Tests/FIRPhoneAuthProviderTests.m b/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
index 5b29b02..7b29ab3 100644
--- a/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
+++ b/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
@@ -314,7 +314,10 @@ static const NSTimeInterval kExpectationTimeout = 1;
NSMutableString *fakeRedirectURLString =
[NSMutableString stringWithString:kFakeRedirectURLStringWithoutReCAPTCHAToken];
[fakeRedirectURLString appendString:kFakeReCAPTCHAToken];
- [[_mockAuth authURLPresenter] canHandleURL:[NSURL URLWithString:fakeRedirectURLString]];
+ OCMExpect([_mockAuth canHandleURL:OCMOCK_ANY]).andDo(^(NSInvocation *invocation) {
+ [[_mockAuth authURLPresenter] canHandleURL:[NSURL URLWithString:fakeRedirectURLString]];
+ });
+ [_mockAuth canHandleURL:[NSURL URLWithString:fakeRedirectURLString]];
});
// Expect view controller dismissal by UIDelegate.
OCMExpect([mockUIDelegate dismissViewControllerAnimated:OCMOCK_ANY completion:OCMOCK_ANY]).