diff --git a/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java b/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java index 2dc0f8b..4335e5d 100644 --- a/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java +++ b/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java @@ -162,7 +162,7 @@ void testGetTagDetails_Success() { assertEquals("Description1", response.getDescription()); assertEquals(2, response.getRelatedQuestions().size()); verify(tagRepository, times(1)).findById(tagId); - verify(questionRepository, times(1)).findQuestionsByTagId(tagId); + verify(questionRepository, times(1)).findQuestionsByDifficultyAndTagId(DifficultyLevel.EASY, tagId); } @Test