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

Commit b723c4f9 authored by Sunny Shao's avatar Sunny Shao
Browse files

Fix the updateDialogForCdmaPhone test case failed

- This is a side effect of the CL(ag/16379105) which removed the getTextAsDigits API.
- Update the return value as empty string of the TelephonyManager.getImei().

Fixes: 215071948
Test: atest ImeiInfoDialogControllerTest
Change-Id: I790b5dc505ad1a91a951a4c46b241baddea392a1
parent 17a0266b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
@@ -197,11 +196,10 @@ public class ImeiInfoDialogControllerTest {
    }

    @Test
    @Ignore
    public void populateImeiInfo_emptyImei_shouldSetMeid_imeiSetToEmptyString() {
        doReturn(true).when(mController).isCdmaLteEnabled();
        when(mTelephonyManager.getPhoneType()).thenReturn(TelephonyManager.PHONE_TYPE_CDMA);
        when(mTelephonyManager.getImei(anyInt())).thenReturn(null);
        when(mTelephonyManager.getImei(anyInt())).thenReturn("");

        mController.populateImeiInfo();