Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6dde818f authored by shamim-emon's avatar shamim-emon
Browse files

refactor(test): adjust tests for isShowComposeButtonOnMessageList

add isShowComposeButtonOnMessageList argument in constructor of GeneralSettings in tests.

add stub implementation for setIsShowComposeButtonOnMessageList in FakeGeneralSettingsManager.
parent d15b6f77
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ class BuildSwipeActionsTest {
            isChangeContactNameColor = false,
            isColorizeMissingContactPictures = false,
            isUseBackgroundAsUnreadIndicator = false,
            isShowComposeButtonOnMessageList = false,
        )

    @Test
@@ -410,6 +411,10 @@ private class FakeGeneralSettingsManager(
    override fun setIsUseBackgroundAsUnreadIndicator(
        isUseBackgroundAsUnreadIndicator: Boolean,
    ) = error("not implemented")

    override fun setIsShowComposeButtonOnMessageList(isShowComposeButtonOnMessageList: Boolean) = error(
        "not implemented",
    )
}

private class FakeStorage(
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ class MessageHelperTest : RobolectricTest() {
                isChangeContactNameColor = false,
                isColorizeMissingContactPictures = false,
                isUseBackgroundAsUnreadIndicator = false,
                isShowComposeButtonOnMessageList = false,
            ),
        )
    }
+1 −0
Original line number Diff line number Diff line
@@ -166,6 +166,7 @@ class NotificationContentCreatorTest : RobolectricTest() {
                    isChangeContactNameColor = false,
                    isColorizeMissingContactPictures = false,
                    isUseBackgroundAsUnreadIndicator = false,
                    isShowComposeButtonOnMessageList = false,
                )
            },
        )