#551 Email registration should fail if no server email is configured

- Stop registration and issue an error if the email address setting is empty for email registration
- Refactor register command into smaller portions
- Create tests
This commit is contained in:
ljacqu
2016-04-15 14:37:47 +02:00
parent 6074ba59d5
commit 71515f188a
3 changed files with 240 additions and 52 deletions
@@ -144,7 +144,7 @@ public class MessagesIntegrationTest {
messages.send(sender, key, "1234");
// then
verify(sender, times(1)).sendMessage(argThat(equalTo("Use /captcha 1234 to solve the captcha")));
verify(sender, times(1)).sendMessage("Use /captcha 1234 to solve the captcha");
}
@Test