fix: support getAuthenticatedUser() in OPDS (#2041)
This commit is contained in:
@@ -67,7 +67,11 @@ class OpdsBookServiceTest {
|
||||
|
||||
private OpdsUserDetails legacyUserDetails() {
|
||||
OpdsUserV2 v2 = OpdsUserV2.builder().userId(999L).username("legacy").build();
|
||||
return new OpdsUserDetails(v2);
|
||||
BookLoreUser user = BookLoreUser.builder().username("legacy").id(999L).build();
|
||||
return new OpdsUserDetails(
|
||||
user,
|
||||
v2
|
||||
);
|
||||
}
|
||||
|
||||
private OpdsUserDetails v2UserDetails(Long userId, boolean isAdmin, Set<Long> libraryIds) {
|
||||
@@ -88,7 +92,10 @@ class OpdsBookServiceTest {
|
||||
}
|
||||
when(user.getAssignedLibraries()).thenReturn(libraries);
|
||||
|
||||
return new OpdsUserDetails(v2);
|
||||
return new OpdsUserDetails(
|
||||
user,
|
||||
v2
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user