IOS-1542 TestDataBase method for creating BasicConnectInfo. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Mon, 15 Apr 2019 16:17:33 +0200
branchIOS-1542
changeset 82415cae4f720403
parent 8240 6cb52a5bf9d8
child 8242 aed53e6c0f3c
IOS-1542 TestDataBase method for creating BasicConnectInfo.
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 @@ -263,6 +263,20 @@
     1.4      }
     1.5  
     1.6      /**
     1.7 +     - Returns: A valid `BasicConnectInfo` for IMAP.
     1.8 +     */
     1.9 +    func createVerifiableBasicConnectInfoIMAP(number: Int = 0) -> BasicConnectInfo {
    1.10 +        return createVerifiableAccountSettings(number: number).basicConnectInfoIMAP()
    1.11 +    }
    1.12 +
    1.13 +    /**
    1.14 +     - Returns: A valid `BasicConnectInfo` for SMTP.
    1.15 +     */
    1.16 +    func createVerifiableBasicConnectInfoSMTP(number: Int = 0) -> BasicConnectInfo {
    1.17 +        return createVerifiableAccountSettings(number: number).basicConnectInfoSMTP()
    1.18 +    }
    1.19 +
    1.20 +    /**
    1.21       - Returns: A valid `CdIdentity` without parent account.
    1.22       */
    1.23      func createWorkingCdIdentity(number: Int = 0, isMyself: Bool = false) -> CdIdentity {