File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,14 @@ - (void)testSwizzlingAppDelegate {
164
164
- (void )testSwizzledIncompleteAppDelegateRemoteNotificationMethod {
165
165
IncompleteAppDelegate *incompleteAppDelegate = [[IncompleteAppDelegate alloc ] init ];
166
166
[self .mockProxy swizzleAppDelegateMethods: incompleteAppDelegate];
167
+ #ifdef BUG_1451
167
168
SEL selector = @selector (application:didReceiveRemoteNotification: );
168
169
XCTAssertTrue ([incompleteAppDelegate respondsToSelector: selector]);
169
170
[incompleteAppDelegate application: OCMClassMock ([UIApplication class ])
170
171
didReceiveRemoteNotification: @{}];
171
172
// Verify our swizzled method was called
172
173
OCMVerify (FCM_swizzle_appDidReceiveRemoteNotification);
174
+ #endif
173
175
}
174
176
175
177
// If the remote notification with fetch handler is NOT implemented, we will force-implement
@@ -181,8 +183,10 @@ - (void)testIncompleteAppDelegateRemoteNotificationWithFetchHandlerMethod {
181
183
@selector (application:didReceiveRemoteNotification:fetchCompletionHandler: );
182
184
XCTAssertFalse ([incompleteAppDelegate respondsToSelector: remoteNotificationWithFetchHandler]);
183
185
186
+ #ifdef BUG_1451
184
187
SEL remoteNotification = @selector (application:didReceiveRemoteNotification: );
185
188
XCTAssertTrue ([incompleteAppDelegate respondsToSelector: remoteNotification]);
189
+ #endif
186
190
}
187
191
188
192
- (void )testSwizzledAppDelegateRemoteNotificationMethods {
You can’t perform that action at this time.
0 commit comments