diff --git a/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java b/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java index f6e34b1..9f962f3 100644 --- a/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java +++ b/src/integrationTest/java/app/mealsmadeeasy/api/image/ImageControllerTests.java @@ -440,4 +440,15 @@ public class ImageControllerTests { .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()); + } + }