mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix unit tests
This commit is contained in:
@@ -50,7 +50,10 @@ class Receiver implements ReceiverInterface
|
||||
public static function fromUser(\User_Adapter $user)
|
||||
{
|
||||
if (!\Swift_Validate::email($user->get_email())) {
|
||||
throw new InvalidArgumentException(sprintf('User provided does not have a valid e-mail address'));
|
||||
throw new InvalidArgumentException(sprintf(
|
||||
'User provided does not have a valid e-mail address (%s)',
|
||||
$user->get_email()
|
||||
));
|
||||
}
|
||||
|
||||
return new static($user->get_display_name(), $user->get_email());
|
||||
|
Reference in New Issue
Block a user