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

Commit 1e7fce30 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix Zen tests setup in NotificationManagerServiceTest" into main

parents 32064a4f 34d40dd1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16712,6 +16712,10 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
        when(mResources.getResourceName(eq(iconResId))).thenReturn(iconResName);
        when(mResources.getIdentifier(eq(iconResName), any(), any())).thenReturn(iconResId);
        when(mPackageManagerClient.getResourcesForApplication(eq(pkg))).thenReturn(mResources);
        // Ensure that there is a zen configuration for the user running the test (won't be
        // USER_SYSTEM if running on HSUM).
        mService.mZenModeHelper.onUserSwitched(mUserId);
    }
    @Test