コード例 #1
0
ファイル: UserTest.php プロジェクト: nemphys/magento2
 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);
 }