CallFeaturesSettingTest: Solves failing test case

Solves failing test case in CallFeaturesSettingTest that was introduced
by patch:
730453920d9ca71b357abcc5fa058365ab6635ba

Solved by using a real Context which is obtained with a call to
InstrumentationRegistry.getTargetContext(). This allows
SubscriptionManager.getResourcesForSubId() to complete successfully.

Bug: 130537951
Test: atest TeleServiceTests:CallFeaturesSettingTest
Change-Id: I418b73bfdb89ec05d9455c9fb444ac22ce86fe75
diff --git a/tests/src/com/android/phone/CallFeaturesSettingTest.java b/tests/src/com/android/phone/CallFeaturesSettingTest.java
index 78d68e3..15d48ba 100644
--- a/tests/src/com/android/phone/CallFeaturesSettingTest.java
+++ b/tests/src/com/android/phone/CallFeaturesSettingTest.java
@@ -21,8 +21,12 @@
 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
 import static androidx.test.espresso.matcher.ViewMatchers.withText;
 
+import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.when;
 
+import android.content.Context;
+
+import androidx.test.InstrumentationRegistry;
 import androidx.test.filters.FlakyTest;
 import androidx.test.rule.ActivityTestRule;
 
@@ -52,6 +56,8 @@
     public void setUp() {
         MockitoAnnotations.initMocks(this);
         mActivity = mRule.getActivity();
+        Context targetContext = InstrumentationRegistry.getTargetContext();
+        doReturn(targetContext).when(mMockPhone).getContext();
     }
 
     @FlakyTest