pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift
branchIOS-1576
changeset 9172 7de6361090b9
parent 9099 43115d37c44c
child 9503 15563a71fba4
child 9723 2da4ad6faab3
     1.1 --- a/pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift	Wed Jun 19 15:49:44 2019 +0200
     1.2 +++ b/pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift	Wed Jun 19 16:29:57 2019 +0200
     1.3 @@ -13,6 +13,7 @@
     1.4  class AccountSettingsViewModelTest: CoreDataDrivenTestBase {
     1.5  
     1.6      var viewModel: AccountSettingsViewModel!
     1.7 +    var keySyncServiceHandshakeDelegateMoc: KeySyncServiceHandshakeDelegateMoc!
     1.8  
     1.9      public func testEmail() {
    1.10          setUpViewModel()
    1.11 @@ -137,10 +138,10 @@
    1.12  
    1.13      private func setUpViewModel() {
    1.14          account.save()
    1.15 -
    1.16 +        keySyncServiceHandshakeDelegateMoc = KeySyncServiceHandshakeDelegateMoc()
    1.17          let theMessageModelService = MessageModelService(
    1.18              errorPropagator: ErrorPropagator(),
    1.19 -            notifyHandShakeDelegate: ErrorNotifyHandshakeDelegate())
    1.20 +            keySyncServiceDelegate: keySyncServiceHandshakeDelegateMoc, keySyncEnabled: false)
    1.21  
    1.22          viewModel = AccountSettingsViewModel(
    1.23              account: account,