MME-19 Add test for images?count=true endpoint.

This commit is contained in:
Jesse Brault 2026-02-08 13:01:43 -06:00
parent d1df876bb3
commit fd3728eb4d

View File

@ -440,4 +440,15 @@ public class ImageControllerTests {
.andExpect(status().isForbidden()); .andExpect(status().isForbidden());
} }
@Test
public void getCountOfOwnedImages() throws Exception {
final User owner = this.seedUser();
this.mockMvc.perform(
get("/images?count=true")
.header("Authorization", "Bearer " + this.getAccessToken(owner))
)
.andExpect(status().isOk())
.andExpect(jsonPath("$.count").isNotEmpty());
}
} }