From 6eb22aa3a05ed95026d35652524345039be7041a Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Mon, 25 Jun 2018 17:16:20 -0700 Subject: Disable failing didReceiveRemoteNotification tests(#1451) (#1452) --- Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Example') diff --git a/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m b/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m index 3453f11..6c7fcec 100644 --- a/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m +++ b/Example/Messaging/Tests/FIRMessagingRemoteNotificationsProxyTest.m @@ -164,12 +164,14 @@ void FCM_swizzle_didReceiveNotificationResponseWithHandler( - (void)testSwizzledIncompleteAppDelegateRemoteNotificationMethod { IncompleteAppDelegate *incompleteAppDelegate = [[IncompleteAppDelegate alloc] init]; [self.mockProxy swizzleAppDelegateMethods:incompleteAppDelegate]; +#ifdef BUG_1451 SEL selector = @selector(application:didReceiveRemoteNotification:); XCTAssertTrue([incompleteAppDelegate respondsToSelector:selector]); [incompleteAppDelegate application:OCMClassMock([UIApplication class]) didReceiveRemoteNotification:@{}]; // Verify our swizzled method was called OCMVerify(FCM_swizzle_appDidReceiveRemoteNotification); +#endif } // If the remote notification with fetch handler is NOT implemented, we will force-implement @@ -181,8 +183,10 @@ void FCM_swizzle_didReceiveNotificationResponseWithHandler( @selector(application:didReceiveRemoteNotification:fetchCompletionHandler:); XCTAssertFalse([incompleteAppDelegate respondsToSelector:remoteNotificationWithFetchHandler]); +#ifdef BUG_1451 SEL remoteNotification = @selector(application:didReceiveRemoteNotification:); XCTAssertTrue([incompleteAppDelegate respondsToSelector:remoteNotification]); +#endif } - (void)testSwizzledAppDelegateRemoteNotificationMethods { -- cgit v1.2.3