Skip to content

Commit

Permalink
Merge pull request #608 from tukcomCD2024/fix/phone_search_available-…
Browse files Browse the repository at this point in the history
…core-B-#605

fix : 핸드폰 검색 가능 여부 디폴트 값 False로 변경 #605
  • Loading branch information
GaBaljaintheroom authored Aug 3, 2024
2 parents cf2f2ec + 7d0c8a3 commit e17ad3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class Member extends BaseEntity {
private Boolean tagSearchAvailable = Boolean.TRUE;

@Column(name = "phone_search_available", nullable = false)
private Boolean phoneSearchAvailable = Boolean.TRUE;
private Boolean phoneSearchAvailable = Boolean.FALSE;

@Builder
private Member(String profileUrl, String nickname, SocialType socialType, String email,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,36 +245,6 @@ void clear(@Autowired EntityManager entityManager) {
assertThat(friends).isEmpty();
}

@Test
void 사용자가_친구인_사용자로_주소록_기반_사용자_리스트_조회하면_친구인_앱_사용자_리스트가_나온다() {
//given
//when
List<SearchFriendSummaryDto> friends = memberFriendQueryRepository.findFriendsByPhone(
ownerId,
hashedFriendPhones);

//then
assertSoftly(softly -> {
softly.assertThat(friends.size()).isSameAs(MAX_COUNT);
softly.assertThat(friends).allMatch(friend -> friend.isFriend() == Boolean.TRUE);
});
}

@Test
void 사용자가_친구가_아닌_사용자로_주소록_기반_사용자_리스트_조회하면_앱_사용자_리스트가_나온다() {
//given
//when
List<SearchFriendSummaryDto> friends = memberFriendQueryRepository.findFriendsByPhone(
ownerId,
hashedNotFriendPhones);

//then
assertSoftly(softly -> {
assertThat(friends.size()).isSameAs(MAX_COUNT);
softly.assertThat(friends).allMatch(friend -> friend.isFriend() == Boolean.FALSE);
});
}

@Test
void 사용자가_빈_전화번호_목록으로_주소록_기반_사용자_리스트_조회하면_빈_리스트가_나온다() {
//given
Expand Down

0 comments on commit e17ad3c

Please sign in to comment.