#930 Add specific message for register captcha success

This commit is contained in:
ljacqu
2018-01-06 20:01:45 +01:00
parent 9afd8679e9
commit ea87075cd2
33 changed files with 86 additions and 25 deletions
@@ -70,7 +70,6 @@ public class CaptchaCommandTest {
Player player = mockPlayerWithName(name);
given(playerCache.isAuthenticated(name)).willReturn(false);
given(loginCaptchaManager.isCaptchaRequired(name)).willReturn(false);
given(registrationCaptchaManager.isCaptchaRequired(name)).willReturn(true);
given(dataSource.isAuthAvailable(name)).willReturn(true);
// when
@@ -145,7 +144,7 @@ public class CaptchaCommandTest {
// then
verify(registrationCaptchaManager).checkCode(player, captchaCode);
verify(loginCaptchaManager, only()).isCaptchaRequired(name);
verify(commonService).send(player, MessageKey.CAPTCHA_SUCCESS);
verify(commonService).send(player, MessageKey.REGISTER_CAPTCHA_SUCCESS);
verify(commonService).send(player, MessageKey.REGISTER_MESSAGE);
}