diff --git a/app/src/androidTest/kotlin/org/libremail/data/local/LibreMailDatabaseTest.kt b/app/src/androidTest/kotlin/org/libremail/data/local/LibreMailDatabaseTest.kt index 3019b28..61ce90d 100644 --- a/app/src/androidTest/kotlin/org/libremail/data/local/LibreMailDatabaseTest.kt +++ b/app/src/androidTest/kotlin/org/libremail/data/local/LibreMailDatabaseTest.kt @@ -133,8 +133,13 @@ class LibreMailDatabaseTest { "acct", listOf( FolderEntity( - "acct", "[Gmail]/Sent Mail", "Sent Mail", "SENT", - selectable = true, sortOrder = 1, specialUse = true, + accountId = "acct", + fullName = "[Gmail]/Sent Mail", + displayName = "Sent Mail", + role = "SENT", + selectable = true, + sortOrder = 1, + specialUse = true, ), FolderEntity("acct", "INBOX", "INBOX", "INBOX", selectable = true, sortOrder = 0), ), diff --git a/app/src/test/kotlin/org/libremail/ui/mailbox/FolderLabelsTest.kt b/app/src/test/kotlin/org/libremail/ui/mailbox/FolderLabelsTest.kt index ef4c4da..65644ed 100644 --- a/app/src/test/kotlin/org/libremail/ui/mailbox/FolderLabelsTest.kt +++ b/app/src/test/kotlin/org/libremail/ui/mailbox/FolderLabelsTest.kt @@ -19,15 +19,14 @@ class FolderLabelsTest { specialUse: Boolean = false, ) = Folder("acct", fullName, displayName, role, selectable = true, specialUse = specialUse) - private fun account(email: String, imapHost: String, authType: AuthType = AuthType.PASSWORD_IMAP) = - Account( - id = "acct", - email = email, - displayName = email, - authType = authType, - imap = ServerConfig(imapHost, 993, MailSecurity.SSL_TLS), - smtp = ServerConfig("smtp", 587, MailSecurity.STARTTLS), - ) + private fun account(email: String, imapHost: String, authType: AuthType = AuthType.PASSWORD_IMAP) = Account( + id = "acct", + email = email, + displayName = email, + authType = authType, + imap = ServerConfig(imapHost, 993, MailSecurity.SSL_TLS), + smtp = ServerConfig("smtp", 587, MailSecurity.STARTTLS), + ) /** Builds base labels the way the drawer does: the friendly role name, else the raw display name. */ private fun baseLabelsOf(folders: List, friendly: Map) =