pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift
branchIOS-1521
changeset 8156 0e7ddb9f1170
parent 8145 b70c344fef56
parent 8142 c0e3c38ebb6a
child 8212 d68a33bff07d
     1.1 --- a/pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift	Thu Apr 04 20:58:20 2019 +0200
     1.2 +++ b/pEpForiOSTests/Models/Settings/AccountSettingsViewModelTest.swift	Fri Apr 05 13:07:33 2019 +0200
     1.3 @@ -14,6 +14,13 @@
     1.4  //
     1.5  //class AccountSettingsViewModelTest: CoreDataDrivenTestBase {
     1.6  //
     1.7 +//
     1.8 +//import XCTest
     1.9 +//@testable import pEpForiOS
    1.10 +//@testable import MessageModel
    1.11 +//
    1.12 +//class AccountSettingsViewModelTest: CoreDataDrivenTestBase {
    1.13 +//
    1.14  //    var viewModel: AccountSettingsViewModel!
    1.15  //
    1.16  //    public func testEmail() {
    1.17 @@ -49,7 +56,7 @@
    1.18  //        let port =  account.smtpServer?.port
    1.19  //        XCTAssertNotNil(port)
    1.20  //        XCTAssertEqual(smptServer.port, "\(String(describing: port!))")
    1.21 -//        XCTAssertEqual(smptServer.transport, account.smtpServer?.transport.asString())
    1.22 +//        XCTAssertEqual(smptServer.transport, account.smtpServer?.transport?.asString())
    1.23  //    }
    1.24  //
    1.25  //    public func testImapServer() {
    1.26 @@ -61,13 +68,10 @@
    1.27  //        let port =  account.imapServer?.port
    1.28  //        XCTAssertNotNil(port)
    1.29  //        XCTAssertEqual(imapServer.port, "\(String(describing: port!))")
    1.30 -//        XCTAssertEqual(imapServer.transport, account.imapServer?.transport.asString())
    1.31 +//        XCTAssertEqual(imapServer.transport, account.imapServer?.transport?.asString())
    1.32  //    }
    1.33  //
    1.34  //    func testUpdate() {
    1.35 -//        XCTFail()
    1.36 -//        return //!!!: crashes due to CD multithreading violation
    1.37 -//
    1.38  //        let address = "fakeAddress"
    1.39  //        let login = "fakelogin"
    1.40  //        let name = "fakeName"
    1.41 @@ -136,7 +140,7 @@
    1.42  //
    1.43  //    private func setUpViewModel(){
    1.44  //        viewModel = AccountSettingsViewModel(account: account)
    1.45 -//        viewModel.messageSyncService = MessageSyncService()
    1.46 +//        viewModel.verificationService = VerificationService()
    1.47  //    }
    1.48  //}
    1.49  //