From 0d14d9f5f56650134d2a18ee60a28d6416078f0b Mon Sep 17 00:00:00 2001 From: Zsika Phillip Date: Mon, 7 May 2018 14:27:21 -0700 Subject: Fixes API tests (#1235) --- Example/Auth/ApiTests/FirebaseAuthApiTests.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Example/Auth') diff --git a/Example/Auth/ApiTests/FirebaseAuthApiTests.m b/Example/Auth/ApiTests/FirebaseAuthApiTests.m index 741814c..d4f4da2 100644 --- a/Example/Auth/ApiTests/FirebaseAuthApiTests.m +++ b/Example/Auth/ApiTests/FirebaseAuthApiTests.m @@ -130,7 +130,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; [self expectationWithDescription:@"Created account with email and password."]; [auth createUserWithEmail:kTestingEmailToCreateUser password:@"password" - completion:^(FIRUser *user, NSError *error) { + completion:^(FIRAuthDataResult *result, NSError *error) { if (error) { NSLog(@"createUserWithEmail has error: %@", error); } @@ -163,7 +163,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; [self expectationWithDescription:@"Created account with email and password."]; [auth createUserWithEmail:kTestingEmailToCreateUser password:@"password" - completion:^(FIRUser *user, NSError *error) { + completion:^(FIRAuthDataResult *user, NSError *error) { apiError = error; [expectation fulfill]; }]; @@ -240,7 +240,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; [self expectationWithDescription:@"Signed in existing account with email and password."]; [auth signInWithEmail:kExistingTestingEmailToSignIn password:@"password" - completion:^(FIRUser *user, NSError *error) { + completion:^(FIRAuthDataResult *user, NSError *error) { if (error) { NSLog(@"Signing in existing account has error: %@", error); } @@ -277,7 +277,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; [self expectationWithDescription:@"CustomAuthToken sign-in finished."]; [auth signInWithCustomToken:customToken - completion:^(FIRUser *_Nullable user, NSError *_Nullable error) { + completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) { if (error) { NSLog(@"Valid token sign in error: %@", error); } @@ -314,7 +314,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; __block NSError *apiError; [auth signInWithCustomToken:customToken - completion:^(FIRUser *_Nullable user, NSError *_Nullable error) { + completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) { if (error) { apiError = error; } @@ -349,7 +349,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; [self expectationWithDescription:@"CustomAuthToken sign-in finished."]; __block NSError *rpcError; [auth signInWithCustomToken:customToken - completion:^(FIRUser *_Nullable user, NSError *_Nullable error) { + completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) { if (error) { rpcError = error; } @@ -390,7 +390,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; [self expectationWithDescription:@"Invalid CustomAuthToken sign-in finished."]; [auth signInWithCustomToken:kInvalidCustomToken - completion:^(FIRUser *_Nullable user, NSError *_Nullable error) { + completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) { XCTAssertEqualObjects(error.localizedDescription, kInvalidTokenErrorMessage); [expectation fulfill]; @@ -583,7 +583,7 @@ static NSTimeInterval const kExpectationsTimeout = 10; XCTestExpectation *expectation = [self expectationWithDescription:@"Anonymousy sign-in finished."]; - [auth signInAnonymouslyWithCompletion:^(FIRUser *user, NSError *error) { + [auth signInAnonymouslyWithCompletion:^(FIRAuthDataResult *result, NSError *error) { if (error) { NSLog(@"Anonymousy sign in error: %@", error); } -- cgit v1.2.3