Don't show the full-screen PIN megaphone.

This commit is contained in:
Greyson Parrelli
2020-02-05 17:11:12 -05:00
parent 83ea919434
commit 6b1e48e485
8 changed files with 53 additions and 19 deletions

View File

@@ -1,6 +1,9 @@
package org.thoughtcrime.securesms.megaphone;
import android.app.Application;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.core.classloader.annotations.PrepareForTest;
@@ -36,6 +39,7 @@ public class PinsForAllScheduleTest {
mockStatic(SignalStore.class);
mockStatic(FeatureFlags.class);
mockStatic(TextSecurePreferences.class);
when(ApplicationDependencies.getApplication()).thenReturn(mock(Application.class));
when(SignalStore.registrationValues()).thenReturn(registrationValues);
when(SignalStore.kbsValues()).thenReturn(kbsValues);
when(TextSecurePreferences.isV1RegistrationLockEnabled(any())).thenReturn(false);
@@ -79,6 +83,8 @@ public class PinsForAllScheduleTest {
}
// TODO [greyson]
@Ignore
@Test
public void givenFirstVisibleIsFullscreenTimeout_whenIShouldDisplayFullscreen_thenIExpectTrue() {
// GIVEN