Replace the existing MockClientProxy with a generated one + special configuration options

This commit is contained in:
Stefan Ceriu
2024-02-27 16:22:47 +02:00
parent 14d76d9860
commit c8f728ca23
36 changed files with 793 additions and 311 deletions
@@ -20,7 +20,7 @@ import XCTest
@MainActor
class InvitesScreenViewModelTests: XCTestCase {
var viewModel: InvitesScreenViewModelProtocol!
var clientProxy: MockClientProxy!
var clientProxy: ClientProxyMock!
var userSession: MockUserSession!
var mockNotificationCenter: NotificationCenterMock!
@@ -29,7 +29,7 @@ class InvitesScreenViewModelTests: XCTestCase {
}
override func setUpWithError() throws {
clientProxy = MockClientProxy(userID: "@a:b.com")
clientProxy = ClientProxyMock(.init(userID: "@a:b.com"))
userSession = MockUserSession(clientProxy: clientProxy,
mediaProvider: MockMediaProvider(),
voiceMessageMediaManager: VoiceMessageMediaManagerMock())