diff options
Diffstat (limited to 'Example/Auth/Tests/FIRUserTests.m')
-rw-r--r-- | Example/Auth/Tests/FIRUserTests.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Example/Auth/Tests/FIRUserTests.m b/Example/Auth/Tests/FIRUserTests.m index a27304c..7a6c165 100644 --- a/Example/Auth/Tests/FIRUserTests.m +++ b/Example/Auth/Tests/FIRUserTests.m @@ -2244,11 +2244,12 @@ static const NSTimeInterval kExpectationTimeout = 2; }); [self expectGetAccountInfoWithMockUserInfoResponse:mockUserInfoResponse]; [[FIRAuth auth] signOut:NULL]; - [[FIRAuth auth] signInWithEmail:kEmail password:kFakePassword completion:^(FIRUser *_Nullable user, - NSError *_Nullable error) { - XCTAssertNotNil(user); + [[FIRAuth auth] signInWithEmail:kEmail + password:kFakePassword + completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) { + XCTAssertNotNil(result.user); XCTAssertNil(error); - completion(user); + completion(result.user); }]; } |