-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove all instances of the sendEmailAddressChangedNotification function
- Loading branch information
Showing
3 changed files
with
1 addition
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,7 +204,6 @@ public void testChangeEmailAddress() throws Exception { | |
|
||
for (org.orcid.jaxb.model.common_v2.Locale locale : org.orcid.jaxb.model.common_v2.Locale.values()) { | ||
profile.setLocale(locale.name()); | ||
recordEmailSender.sendEmailAddressChangedNotification(orcid, "[email protected]", "[email protected]"); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -985,8 +985,7 @@ public void testAddEmail_noPrimaryEmailChange() { | |
when(mockEmailManager.emailExists(eq("[email protected]"))).thenReturn(false); | ||
|
||
controller.addEmails(mockRequest, newEmail); | ||
|
||
verify(mockRecordEmailSender, Mockito.never()).sendEmailAddressChangedNotification(any(), any(), any()); | ||
|
||
verify(mockRecordEmailSender, Mockito.times(1)).sendVerificationEmail(eq(USER_ORCID), eq("[email protected]"), eq(false)); | ||
} | ||
|
||
|
@@ -1009,7 +1008,6 @@ public void testAddEmail_primaryEmailChange() { | |
|
||
controller.addEmails(mockRequest, newEmail); | ||
|
||
verify(mockRecordEmailSender, Mockito.never()).sendEmailAddressChangedNotification(eq(USER_ORCID), eq("[email protected]"), eq("[email protected]")); | ||
verify(mockRecordEmailSender, Mockito.times(1)).sendVerificationEmail(eq(USER_ORCID), eq("[email protected]"), eq(false)); | ||
} | ||
|
||
|
@@ -1030,7 +1028,6 @@ public void testSetPrimary_nothingChange() { | |
|
||
controller.setPrimary(mockRequest, email); | ||
|
||
verify(mockRecordEmailSender, Mockito.never()).sendEmailAddressChangedNotification(any(), any(), any()); | ||
verify(mockRecordEmailSender, Mockito.never()).sendVerificationEmail(any(), any(), any()); | ||
} | ||
|
||
|
@@ -1051,7 +1048,6 @@ public void testSetPrimary_primaryEmailChange() { | |
|
||
controller.setPrimary(mockRequest, email); | ||
|
||
verify(mockRecordEmailSender, Mockito.never()).sendEmailAddressChangedNotification(eq(USER_ORCID), eq("[email protected]"), eq("[email protected]")); | ||
verify(mockRecordEmailSender, Mockito.never()).sendVerificationEmail(any(), any(), any()); | ||
} | ||
|
||
|
@@ -1075,7 +1071,6 @@ public void testSetPrimary_primaryEmailChangeAndPrimaryIsNotVerified() { | |
|
||
controller.setPrimary(mockRequest, email); | ||
|
||
verify(mockRecordEmailSender, Mockito.never()).sendEmailAddressChangedNotification(eq(USER_ORCID), eq("[email protected]"), eq("[email protected]")); | ||
verify(mockRecordEmailSender, Mockito.times(1)).sendVerificationEmail(eq(USER_ORCID), eq("[email protected]"), eq(true)); | ||
} | ||
|
||
|
@@ -1099,7 +1094,6 @@ public void testEditEmail_noPrimaryChange() { | |
|
||
controller.editEmail(mockRequest, email); | ||
|
||
verify(mockRecordEmailSender, Mockito.never()).sendEmailAddressChangedNotification(any(), any(), any()); | ||
verify(mockRecordEmailSender, Mockito.times(1)).sendVerificationEmail(eq(USER_ORCID), eq("[email protected]"), eq(false)); | ||
} | ||
|
||
|
@@ -1120,7 +1114,6 @@ public void testEditEmail_primaryEmailChange() { | |
when(mockEmailManager.editEmail(eq(USER_ORCID), eq("[email protected]"), eq("[email protected]"), any())).thenReturn(Map.of("verifyAddress", "[email protected]", "new", "[email protected]", "old", "[email protected]")); | ||
controller.editEmail(mockRequest, email); | ||
|
||
verify(mockRecordEmailSender, Mockito.never()).sendEmailAddressChangedNotification(eq(USER_ORCID), eq("[email protected]"), eq("[email protected]")); | ||
verify(mockRecordEmailSender, Mockito.times(1)).sendVerificationEmail(eq(USER_ORCID), eq("[email protected]"), eq(true)); | ||
} | ||
|
||
|