Skip to content

Commit

Permalink
Test: add delete question by user provider
Browse files Browse the repository at this point in the history
  • Loading branch information
emost22 committed Jun 22, 2024
1 parent 57e613f commit 689d9bc
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,4 +419,15 @@ class 질문_저장 {
assertThat(exception.getResultCode()).isEqualTo(QUESTION_THREE_SECONDS);
}
}

@Test
void 질문_삭제_user_테스트() {
// given

// when
questionProvider.deleteQuestionByUser(TEST_USER_ID);

// then
verify(questionRepository).deleteByUserId(any());
}
}

0 comments on commit 689d9bc

Please sign in to comment.