Quellcode durchsuchen

Pure OCMock3 syntax (#5535)

Paul Beusterien vor 5 Jahren
Ursprung
Commit
fbd7847675
1 geänderte Dateien mit 12 neuen und 12 gelöschten Zeilen
  1. 12 12
      FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m

+ 12 - 12
FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m

@@ -1138,10 +1138,10 @@ static const NSTimeInterval kExpectationTimeout = 2;
         });
       });
   // Mock receiving of push notification.
-  OCMExpect([[_mockAppCredentialManager ignoringNonObjectArgs]
-                didStartVerificationWithReceipt:OCMOCK_ANY
-                                        timeout:0
-                                       callback:OCMOCK_ANY])
+  OCMExpect([_mockAppCredentialManager didStartVerificationWithReceipt:OCMOCK_ANY
+                                                               timeout:0
+                                                              callback:OCMOCK_ANY])
+      .ignoringNonObjectArgs()
       .andCallIdDoubleIdBlock(^(NSString *receipt, NSTimeInterval timeout,
                                 FIRAuthAppCredentialCallback callback) {
         XCTAssertEqualObjects(receipt, kTestReceipt);
@@ -1254,10 +1254,10 @@ static const NSTimeInterval kExpectationTimeout = 2;
       });
 
   // Mock receiving of push notification.
-  OCMStub([[_mockAppCredentialManager ignoringNonObjectArgs]
-              didStartVerificationWithReceipt:OCMOCK_ANY
-                                      timeout:0
-                                     callback:OCMOCK_ANY])
+  OCMStub([_mockAppCredentialManager didStartVerificationWithReceipt:OCMOCK_ANY
+                                                             timeout:0
+                                                            callback:OCMOCK_ANY])
+      .ignoringNonObjectArgs()
       .andCallIdDoubleIdBlock(^(NSString *receipt, NSTimeInterval timeout,
                                 FIRAuthAppCredentialCallback callback) {
         XCTAssertEqualObjects(receipt, kTestReceipt);
@@ -1359,10 +1359,10 @@ static const NSTimeInterval kExpectationTimeout = 2;
       });
 
   // Mock receiving of push notification.
-  OCMStub([[_mockAppCredentialManager ignoringNonObjectArgs]
-              didStartVerificationWithReceipt:OCMOCK_ANY
-                                      timeout:0
-                                     callback:OCMOCK_ANY])
+  OCMStub([_mockAppCredentialManager didStartVerificationWithReceipt:OCMOCK_ANY
+                                                             timeout:0
+                                                            callback:OCMOCK_ANY])
+      .ignoringNonObjectArgs()
       .andCallIdDoubleIdBlock(^(NSString *receipt, NSTimeInterval timeout,
                                 FIRAuthAppCredentialCallback callback) {
         XCTAssertEqualObjects(receipt, kTestReceipt);