deep-linking-sample/Apps/Wikipedia/WikipediaUnitTests/Code/Notifications Tests/RemoteNotificationsModelController+TestExtensions.swift

10 lines
323 B
Swift
Raw Normal View History

import Foundation
@testable import WMF
extension RemoteNotificationsModelController {
static func temporaryModelController() throws -> RemoteNotificationsModelController {
let url = URL(fileURLWithPath: WMFRandomTemporaryPath())
return try RemoteNotificationsModelController(containerURL: url)
}
}