Skip to content

Commit 05d494c

Browse files
author
renkelvin
authored
Update FIRAuthTests.m (#11081)
1 parent a7b4469 commit 05d494c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

FirebaseAuth/Tests/Unit/FIRAuthTests.m

-18
Original file line numberDiff line numberDiff line change
@@ -2804,15 +2804,6 @@ - (void)testRevokeTokenSuccess {
28042804
}];
28052805
[self waitForExpectationsWithTimeout:kExpectationTimeout handler:nil];
28062806
[self assertUser:[FIRAuth auth].currentUser];
2807-
id mockSecureTokenResponse = OCMClassMock([FIRSecureTokenResponse class]);
2808-
OCMStub([mockSecureTokenResponse accessToken]).andReturn(@"IDToken");
2809-
OCMExpect([self->_mockBackend secureToken:[OCMArg any] callback:[OCMArg any]])
2810-
.andCallBlock2(
2811-
^(FIRSecureTokenRequest *_Nullable request, FIRSecureTokenResponseCallback callback) {
2812-
dispatch_async(FIRAuthGlobalWorkQueue(), ^() {
2813-
callback(mockSecureTokenResponse, nil);
2814-
});
2815-
});
28162807
OCMExpect([_mockBackend revokeToken:[OCMArg any] callback:[OCMArg any]])
28172808
.andCallBlock2(
28182809
^(FIRRevokeTokenRequest *_Nullable request, FIRRevokeTokenResponseCallback callback) {
@@ -2860,15 +2851,6 @@ - (void)testRevokeTokenMissingCallback {
28602851
}];
28612852
[self waitForExpectationsWithTimeout:kExpectationTimeout handler:nil];
28622853
[self assertUser:[FIRAuth auth].currentUser];
2863-
id mockSecureTokenResponse = OCMClassMock([FIRSecureTokenResponse class]);
2864-
OCMStub([mockSecureTokenResponse accessToken]).andReturn(@"IDToken");
2865-
OCMExpect([self->_mockBackend secureToken:[OCMArg any] callback:[OCMArg any]])
2866-
.andCallBlock2(
2867-
^(FIRSecureTokenRequest *_Nullable request, FIRSecureTokenResponseCallback callback) {
2868-
dispatch_async(FIRAuthGlobalWorkQueue(), ^() {
2869-
callback(mockSecureTokenResponse, nil);
2870-
});
2871-
});
28722854
XCTestExpectation *revokeExpectation = [self expectationWithDescription:@"revoke"];
28732855
OCMExpect([_mockBackend revokeToken:[OCMArg any] callback:[OCMArg any]])
28742856
.andCallBlock2(

0 commit comments

Comments
 (0)