diff options
author | Zsika Phillip <protocol86@users.noreply.github.com> | 2017-09-05 23:16:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 23:16:28 -0700 |
commit | 954484c4c44036c9b4e67aa1f81c87345675e289 (patch) | |
tree | 8722f7e786004ca0bfeccf3f7cdcb1bdba3752bd /Example/Auth/Tests | |
parent | dafdf26603207af61acc0be39115f57ce5ad959b (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.m | 5 |
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]). |