Permalink
Browse files

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

…lsrv
  • Loading branch information...
1 parent 4deedf6 commit 2e5bdd862bb698b7ac3b7868a7a46bd4c9f9dd1e @lorenzo lorenzo committed Jun 21, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
@@ -352,7 +352,8 @@ public function setUp() {
$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))));
}
/**

0 comments on commit 2e5bdd8

Please sign in to comment.