Adding a new change to the AuthComponent test to make it pass with Sqlsrv

This commit is contained in:
Jose Lorenzo Rodriguez 2011-06-21 16:32:12 -04:30
parent 4deedf6da2
commit 2e5bdd862b

View file

@ -352,7 +352,8 @@ class AuthTest extends CakeTestCase {
$this->initialized = true;
Router::reload();
ClassRegistry::init('AuthUser')->updateAll(array('password' => '"' . Security::hash('cake', null, true) . '"'));
$User = ClassRegistry::init('AuthUser');
$User->updateAll(array('password' => $User->getDataSource()->value(Security::hash('cake', null, true))));
}
/**