aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2018-05-07 14:27:21 -0700
committerGravatar GitHub <noreply@github.com>2018-05-07 14:27:21 -0700
commit0d14d9f5f56650134d2a18ee60a28d6416078f0b (patch)
tree040198759c5cba6b51fac3dbfe83afd314ad0ac7 /Example
parent38824e721ebaa3f50e443e1ea4b47d34030e4703 (diff)
Fixes API tests (#1235)
Diffstat (limited to 'Example')
-rw-r--r--Example/Auth/ApiTests/FirebaseAuthApiTests.m16
1 files changed, 8 insertions, 8 deletions
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);
}