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

Commit b000ace0 authored by Jaekyun Seok's avatar Jaekyun Seok
Browse files

Fix failure of ZenModeAutomaticRulesPreferenceControllerTest

Running ZenModeAutomaticRulesPreferenceControllerTest fails due to
missing field "DEFAULT_RULE_IDS".

"mDefaultRuleIds" should be used instead of it.

Bug: 63077372
Test: make \
    ROBOTEST_FILTER=ZenModeAutomaticRulesPreferenceControllerTest \
    RunSettingsRoboTests

Change-Id: Ieb4a4304a0404685e4a50eb3a5c863a0132ebf7d
parent e677f493
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ public class ZenModeAutomaticRulesPreferenceControllerTest {
                mock(Lifecycle.class));

        ReflectionHelpers.setField(mController, "mBackend", mBackend);
        ReflectionHelpers.setField(mController, "DEFAULT_RULE_IDS", mDefaultIds);
        ReflectionHelpers.setField(mController, "mDefaultRuleIds", mDefaultIds);

        when(mPreferenceScreen.findPreference(mController.getPreferenceKey())).thenReturn(
                mockPref);