Normalize identity types throughout KeysController

This commit is contained in:
Jon Chambers
2023-11-30 10:36:39 -05:00
committed by Jon Chambers
parent e2037dea6c
commit 4cca7aa4bd
4 changed files with 32 additions and 39 deletions

View File

@@ -217,6 +217,8 @@ class KeysControllerTest {
when(existsAccount.getUuid()).thenReturn(EXISTS_UUID);
when(existsAccount.getPhoneNumberIdentifier()).thenReturn(EXISTS_PNI);
when(existsAccount.getIdentifier(IdentityType.ACI)).thenReturn(EXISTS_UUID);
when(existsAccount.getIdentifier(IdentityType.PNI)).thenReturn(EXISTS_PNI);
when(existsAccount.getDevice(sampleDeviceId)).thenReturn(Optional.of(sampleDevice));
when(existsAccount.getDevice(sampleDevice2Id)).thenReturn(Optional.of(sampleDevice2));
when(existsAccount.getDevice(sampleDevice3Id)).thenReturn(Optional.of(sampleDevice3));