Skip to content

Commit 1c3abf1

Browse files
fix messaging breakage (#6139)
1 parent 4356c91 commit 1c3abf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

FirebaseMessaging/Tests/UnitTests/FIRMessagingRemoteNotificationsProxyTest.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ - (void)setUp {
159159
// Update +sharedProxy to always return our test instance
160160
OCMStub([_mockProxyClass sharedProxy]).andReturn(self.proxy);
161161
if (@available(macOS 10.14, iOS 10.0, *)) {
162-
_mockUserNotificationCenter =
163-
OCMPartialMock([UNUserNotificationCenter currentNotificationCenter]);
162+
_mockUserNotificationCenter = OCMClassMock([UNUserNotificationCenter class]);
163+
OCMStub([_mockUserNotificationCenter currentNotificationCenter])
164+
.andReturn(_mockUserNotificationCenter);
164165
}
165166
}
166167

0 commit comments

Comments
 (0)