Skip to content

Commit fbd7847

Browse files
authored
Pure OCMock3 syntax (#5535)
1 parent 610055a commit fbd7847

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,10 +1138,10 @@ - (void)testVerifyClient {
11381138
});
11391139
});
11401140
// Mock receiving of push notification.
1141-
OCMExpect([[_mockAppCredentialManager ignoringNonObjectArgs]
1142-
didStartVerificationWithReceipt:OCMOCK_ANY
1143-
timeout:0
1144-
callback:OCMOCK_ANY])
1141+
OCMExpect([_mockAppCredentialManager didStartVerificationWithReceipt:OCMOCK_ANY
1142+
timeout:0
1143+
callback:OCMOCK_ANY])
1144+
.ignoringNonObjectArgs()
11451145
.andCallIdDoubleIdBlock(^(NSString *receipt, NSTimeInterval timeout,
11461146
FIRAuthAppCredentialCallback callback) {
11471147
XCTAssertEqualObjects(receipt, kTestReceipt);
@@ -1254,10 +1254,10 @@ - (void)testSendVerificationCodeFailedRetry {
12541254
});
12551255

12561256
// Mock receiving of push notification.
1257-
OCMStub([[_mockAppCredentialManager ignoringNonObjectArgs]
1258-
didStartVerificationWithReceipt:OCMOCK_ANY
1259-
timeout:0
1260-
callback:OCMOCK_ANY])
1257+
OCMStub([_mockAppCredentialManager didStartVerificationWithReceipt:OCMOCK_ANY
1258+
timeout:0
1259+
callback:OCMOCK_ANY])
1260+
.ignoringNonObjectArgs()
12611261
.andCallIdDoubleIdBlock(^(NSString *receipt, NSTimeInterval timeout,
12621262
FIRAuthAppCredentialCallback callback) {
12631263
XCTAssertEqualObjects(receipt, kTestReceipt);
@@ -1359,10 +1359,10 @@ - (void)testSendVerificationCodeSuccessFulRetry {
13591359
});
13601360

13611361
// Mock receiving of push notification.
1362-
OCMStub([[_mockAppCredentialManager ignoringNonObjectArgs]
1363-
didStartVerificationWithReceipt:OCMOCK_ANY
1364-
timeout:0
1365-
callback:OCMOCK_ANY])
1362+
OCMStub([_mockAppCredentialManager didStartVerificationWithReceipt:OCMOCK_ANY
1363+
timeout:0
1364+
callback:OCMOCK_ANY])
1365+
.ignoringNonObjectArgs()
13661366
.andCallIdDoubleIdBlock(^(NSString *receipt, NSTimeInterval timeout,
13671367
FIRAuthAppCredentialCallback callback) {
13681368
XCTAssertEqualObjects(receipt, kTestReceipt);

0 commit comments

Comments
 (0)