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

Correction tests avec nouvelles validations compte lecteur

parent d6022e23
Branches
Tags
No related merge requests found
......@@ -55,7 +55,7 @@ class AbonneControllerEditWithContactMailSmsPostTest extends AbonneControllerEdi
['valeur' => 'prenom;mode_contact;telephone;mail']);
$this->postDispatch('/abonne/edit',
['telephone' => '12 34 56',
['telephone' => '12 34 56 78 90',
'mail' => 'mm@gmail.com',
'mode_contact' => 'is_contact_mail',
'prenom' => 'Marcel',
......@@ -64,8 +64,8 @@ class AbonneControllerEditWithContactMailSmsPostTest extends AbonneControllerEdi
/** @test */
public function telephoneShouldBe123456() {
$this->assertEquals('12 34 56', $this->_jerome->getTelephone());
public function telephoneShouldBe1234567890() {
$this->assertEquals('12 34 56 78 90', $this->_jerome->getTelephone());
}
......
......@@ -473,7 +473,7 @@ class AbonneControllerNewslettersValidationsTest extends AbonneControllerWithTwo
public function testWrongMail() {
$this->_postData(array('mail' => 'marc'));
$this->assertQueryContentContains("form ul.errors li",
"'marc' n'est pas un email valide dans le format local-part@hostname");
"'marc' n'est pas un email valide");
}
......
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