Ejemplo n.º 1
0
 public function testValidatePasswordsDontMatch()
 {
     $this->_model->setNewPassword('password');
     $this->_model->setPasswordConfirmation('password1');
     $errors = $this->_model->validate();
     $this->assertContains(Mage::helper('Mage_User_Helper_Data')->__('Password confirmation must be same as password.'), $errors);
 }