Skip to content
Snippets Groups Projects
Commit 75b11956 authored by llaffont's avatar llaffont
Browse files

Newsletter: test + prise en charge bug Zend sur validations des adresses mails

parent 39319b6c
Branches
Tags
No related merge requests found
......@@ -39,8 +39,12 @@ class ZendAfi_Mail extends Zend_Mail {
public function addBcc($email) {
$validator = new Zend_Validate_EmailAddress();
if ($validator->isValid($email))
parent::addBcc($email);
try {
if ($validator->isValid($email))
parent::addBcc($email);
} catch (Zend_Validate_Exception $e) {
}
}
}
......
......@@ -69,6 +69,13 @@ class NewsletterMailingAnimationsTestSendMail extends ModelTestCase {
->setMail('zork');
$this->zorkglub = new Class_Users();
$this->zorkglub
->setPrenom('')
->setNom('zorkglub')
->setMail('zork@creutzwaldenergies-services.fr+');
$this->animations = new Class_Newsletter();
$this->animations
->setTitre('Animations du mois')
......@@ -79,6 +86,7 @@ class NewsletterMailingAnimationsTestSendMail extends ModelTestCase {
->addUser($this->rdubois)
->addUser($this->mduchamp)
->addUser($this->zork)
->addUser($this->zorkglub)
->setExpediteur(null);
$this->mock_transport = new MockMailTransport();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment