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

Commit 2247bb0a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update the FlashNotificationsPreferenceFragmentTest to return correct metric category"

parents 5ba5a9e8 0f046151
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;

import android.app.settings.SettingsEnums;
import android.content.Context;

import androidx.test.core.app.ApplicationProvider;
@@ -66,8 +67,9 @@ public class FlashNotificationsPreferenceFragmentTest {
    }

    @Test
    public void getMetricsCategory_isZero() {
        assertThat(mFragment.getMetricsCategory()).isEqualTo(0); // TODO
    public void getMetricsCategory_returnsCorrectCategory() {
        assertThat(mFragment.getMetricsCategory()).isEqualTo(
                SettingsEnums.FLASH_NOTIFICATION_SETTINGS);
    }

    @Test