diff --git a/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt b/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt index 325f813..53609ee 100644 --- a/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt +++ b/app/src/androidTest/kotlin/org/libremail/data/local/DatabaseEncryptionTest.kt @@ -147,7 +147,7 @@ class DatabaseEncryptionTest { } finally { encrypted.close() } - assertEquals("Room's schema version must survive the plaintext -> encrypted conversion", 18, version) + assertEquals("Room's schema version must survive the plaintext -> encrypted conversion", 19, version) } private fun openPlaintext(): LibreMailDatabase = diff --git a/app/src/androidTest/kotlin/org/libremail/data/local/MessageDaoTest.kt b/app/src/androidTest/kotlin/org/libremail/data/local/MessageDaoTest.kt index 5a66ee6..0d875d9 100644 --- a/app/src/androidTest/kotlin/org/libremail/data/local/MessageDaoTest.kt +++ b/app/src/androidTest/kotlin/org/libremail/data/local/MessageDaoTest.kt @@ -76,6 +76,13 @@ class MessageDaoTest { inInbox = inInbox, bodyFetched = bodyFetched, uid = uid, + // Mirror production's Unicode-casefold population (issue #232): Mappers.toEntity + MessageDao's + // updateHeaderContent/updateBody write `lowercase()` copies of the searchable fields, and the + // *SearchSummaries queries match against these `*Fold` columns — so fixtures must set them too. + senderFold = sender.lowercase(), + senderEmailFold = senderEmail.lowercase(), + subjectFold = subject.lowercase(), + snippetFold = snippet.lowercase(), ) /** Refreshes a [PagingSource] and returns the first loaded page's ids in order. */