Skip to content

Commit bab9313

Browse files
committed
test: remove no longer supported below api 21 test
disable Pull request CI temporarily re-enable Pull request CI
1 parent 400b4c6 commit bab9313

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

auth/src/test/java/com/firebase/ui/auth/ui/phone/PhoneNumberUtilsTest.java

-32
Original file line numberDiff line numberDiff line change
@@ -83,38 +83,6 @@ public void testGetCountryCode() {
8383
assertEquals(null, getCountryCode(new Locale("", "DJJZ").getCountry()));
8484
}
8585

86-
@Test
87-
@Config(sdk = 16)
88-
public void testFormatNumberToE164_belowApi21() {
89-
String validPhoneNumber = "+919994947354";
90-
CountryInfo indiaCountryInfo = new CountryInfo(new Locale("", "IN"), 91);
91-
// no leading plus
92-
assertEquals(validPhoneNumber, format("9994947354", indiaCountryInfo));
93-
// fully formatted
94-
assertEquals(validPhoneNumber, format("+919994947354", indiaCountryInfo));
95-
// parantheses and hyphens
96-
assertEquals(validPhoneNumber, format("(99949) 47-354", indiaCountryInfo));
97-
98-
// The following cases would fail for lower api versions.
99-
// Leaving tests in place to formally identify cases
100-
101-
// no leading +
102-
// assertEquals(validPhoneNumber, format("919994947354", indiaCountryInfo));
103-
104-
// with hyphens
105-
// assertEquals(validPhoneNumber, format("+91-(999)-(49)-(47354)",
106-
// indiaCountryInfo));
107-
108-
// with spaces leading plus
109-
// assertEquals(validPhoneNumber, format("+91 99949 47354", indiaCountryInfo));
110-
111-
// space formatting
112-
// assertEquals(validPhoneNumber, format("91 99949 47354", indiaCountryInfo));
113-
114-
// invalid phone number
115-
// assertNull(format("999474735", indiaCountryInfo));
116-
}
117-
11886
@Test
11987
public void testGetCurrentCountryInfo_fromSim() {
12088
Context context = mock(Context.class);

0 commit comments

Comments
 (0)