From a94d769c557db19d224c7483d2cd109112b74120 Mon Sep 17 00:00:00 2001 From: Steven Gschwind Date: Mon, 20 May 2019 11:32:06 -0700 Subject: [PATCH] to OCMReject() instead of [[mockObject reject] methodToBeCalled] Summary: Reformatting OCMReject call to be consistent across tests Reviewed By: tianqibt Differential Revision: D15385737 fbshipit-source-id: b174e3f4974d9a78ee524bf78c029f2769c74e92 --- FBSDKCoreKit/FBSDKCoreKitTests/FBSDKApplicationDelegateTests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FBSDKCoreKit/FBSDKCoreKitTests/FBSDKApplicationDelegateTests.m b/FBSDKCoreKit/FBSDKCoreKitTests/FBSDKApplicationDelegateTests.m index 8bfee6ff9f..aad2c1b69c 100644 --- a/FBSDKCoreKit/FBSDKCoreKitTests/FBSDKApplicationDelegateTests.m +++ b/FBSDKCoreKit/FBSDKCoreKitTests/FBSDKApplicationDelegateTests.m @@ -80,7 +80,7 @@ - (void)testAutoLogAppEventsEnabled { - (void)testAutoLogAppEventsDisabled { [OCMStub(ClassMethod([_settingsMock isAutoLogAppEventsEnabled])) andReturnValue: OCMOCK_VALUE(NO)]; - [[_delegateMock reject] _logSDKInitialize]; + OCMReject([_delegateMock _logSDKInitialize]); id app = OCMClassMock([UIApplication class]); [_delegate application:app didFinishLaunchingWithOptions:nil];