We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac4c83 commit 85b2a12Copy full SHA for 85b2a12
1 file changed
legacy/core/src/test/java/com/fsck/k9/UnifiedInboxConfiguratorTest.kt
@@ -67,6 +67,18 @@ class UnifiedInboxConfiguratorTest {
67
assertThat(generalSettingsManager.getConfig().display.inboxSettings.isShowUnifiedInbox).isEqualTo(true)
68
}
69
70
+ @Test
71
+ fun `configureUnifiedInbox should disable unified inbox when there is only one account`() {
72
+ // Given
73
+ `when`(accountManager.getAccounts()).thenReturn(listOf(mock()))
74
+
75
+ // When
76
+ configurator.configureUnifiedInbox()
77
78
+ // Then
79
+ assertThat(generalSettingsManager.getConfig().display.inboxSettings.isShowUnifiedInbox).isEqualTo(false)
80
+ }
81
82
@Test
83
fun `configureUnifiedInbox should not enable unified inbox when there are less than two accounts`() {
84
// Given
0 commit comments