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

Commit c62f8809 authored by Doris Ling's avatar Doris Ling
Browse files

Fix test failure for EmergencyInfoTestController.

Make sure that the test preference has the correct key.

Change-Id: Icbf18d3f8854bc43ef486ae56f0b5fc8f035bf41
Fix: 32508237
Test: RunSettingsRoboTests
parent 5abaef7d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -110,12 +110,13 @@ public class EmergencyInfoPreferenceControllerTest {

        verify(mScreen, never()).removePreference(any(Preference.class));
    }
/*

    @Test
    public void handlePreferenceTreeClick_shouldStartActivity() {
        final Preference preference = mock(Preference.class);
        final ShadowApplication application = ShadowApplication.getInstance();
        final Context context = application.getApplicationContext();
        final Preference preference = new Preference(context);
        preference.setKey("emergency_info");
        mController = new EmergencyInfoPreferenceController(context);

        mController.handlePreferenceTreeClick(preference);
@@ -123,5 +124,4 @@ public class EmergencyInfoPreferenceControllerTest {
        assertThat(application.getNextStartedActivity().getAction())
                .isEqualTo("android.settings.EDIT_EMERGENGY_INFO");
    }
*/
}