Fix notification center unit tests, setup authorization status return value

This commit is contained in:
Stefan Ceriu
2024-04-03 11:22:13 +03:00
committed by Stefan Ceriu
parent 8e76cb08b7
commit b3015b2be0

View File

@@ -40,6 +40,7 @@ final class NotificationManagerTests: XCTestCase {
AppSettings.resetAllSettings()
notificationCenter = UserNotificationCenterMock()
notificationCenter.requestAuthorizationOptionsReturnValue = true
notificationCenter.authorizationStatusReturnValue = .authorized
notificationManager = NotificationManager(notificationCenter: notificationCenter, appSettings: appSettings)
notificationManager.start()