File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
FirebaseMessaging/Tests/UnitTests Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -316,29 +316,6 @@ - (void)testSwizzlingInvalidUserNotificationCenterDelegate {
316
316
}
317
317
}
318
318
319
- - (void )testSwizzlingUserNotificationsCenterDelegate {
320
- #if TARGET_OS_IOS || TARGET_OS_OSX
321
- if (@available (macOS 10.14 , iOS 10.0 , *)) {
322
- FakeUserNotificationCenterDelegate *delegate =
323
- [[FakeUserNotificationCenterDelegate alloc ] init ];
324
- OCMStub ([self .mockUserNotificationCenter delegate ]).andReturn (delegate);
325
- [self .proxy swizzleMethodsIfPossible ];
326
-
327
- NSDictionary *message = @{@" message" : @" " };
328
- id notification = [self userNotificationWithMessage: message];
329
-
330
- OCMExpect ([self .mockMessaging appDidReceiveMessage: message]);
331
-
332
- [delegate userNotificationCenter: self .mockUserNotificationCenter
333
- willPresentNotification: notification
334
- withCompletionHandler: ^(UNNotificationPresentationOptions options){
335
- }];
336
-
337
- [self .mockMessaging verify ];
338
- }
339
- #endif
340
- }
341
-
342
319
// Use a fake delegate that doesn't actually implement the needed delegate method.
343
320
// Our swizzled method should not be called.
344
321
You can’t perform that action at this time.
0 commit comments