IOS-1542 AccountSettings.basicConnectInfoSMTP. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Mon, 15 Apr 2019 16:17:33 +0200
branchIOS-1542
changeset 82399e8eb6f3e246
parent 8238 4caa515a4fc8
child 8240 6cb52a5bf9d8
IOS-1542 AccountSettings.basicConnectInfoSMTP.
pEpForiOSTests/TestUtils/TestDataBase.swift
     1.1 --- a/pEpForiOSTests/TestUtils/TestDataBase.swift	Mon Apr 15 16:17:33 2019 +0200
     1.2 +++ b/pEpForiOSTests/TestUtils/TestDataBase.swift	Mon Apr 15 16:17:33 2019 +0200
     1.3 @@ -150,7 +150,7 @@
     1.4              return BasicConnectInfo(
     1.5                  accountEmailAddress: idAddress,
     1.6                  loginName: imapLoginName ?? idAddress,
     1.7 -                loginPasswordKeyChainKey: "",
     1.8 +                loginPasswordKeyChainKey: nil,
     1.9                  loginPassword: password,
    1.10                  networkAddress: imapServerAddress,
    1.11                  networkPort: imapServerPort,
    1.12 @@ -158,6 +158,19 @@
    1.13                  authMethod: nil,
    1.14                  emailProtocol: .imap)
    1.15          }
    1.16 +
    1.17 +        func basicConnectInfoSMTP() -> BasicConnectInfo {
    1.18 +            return BasicConnectInfo(
    1.19 +                accountEmailAddress: idAddress,
    1.20 +                loginName: imapLoginName ?? idAddress,
    1.21 +                loginPasswordKeyChainKey: nil,
    1.22 +                loginPassword: password,
    1.23 +                networkAddress: imapServerAddress,
    1.24 +                networkPort: imapServerPort,
    1.25 +                connectionTransport: ConnectionTransport(transport: imapServerTransport),
    1.26 +                authMethod: nil,
    1.27 +                emailProtocol: .smtp)
    1.28 +        }
    1.29      }
    1.30  
    1.31      private var testAccounts = [AccountSettings]()