示例#1
0
 public function testValidateInvalidEmail()
 {
     $this->_model->setEmail('invalid@email');
     $errors = $this->_model->validate();
     $this->assertContains(Mage::helper('Mage_User_Helper_Data')->__('Please enter a valid email.'), $errors);
 }