1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-04 15:17:28 +02:00

Update tests for 'confirmEmail' and its wrapper to catch new exception

This commit is contained in:
Marco
2017-07-30 20:13:28 +02:00
parent af5ce5a0b4
commit f13302b014

View File

@@ -165,6 +165,9 @@ function processRequestData(\Delight\Auth\Auth $auth) {
catch (\Delight\Auth\TokenExpiredException $e) {
return 'token expired';
}
catch (\Delight\Auth\UserAlreadyExistsException $e) {
return 'email address already exists';
}
catch (\Delight\Auth\TooManyRequestsException $e) {
return 'too many requests';
}