Permalink
Browse files

Fixing more AuthComponent tests for Sqlsrv

  • Loading branch information...
1 parent 9f12424 commit e14c4412fdd47085e5744cbb2a2605bd3d43507f @lorenzo lorenzo committed Jun 21, 2011
@@ -47,7 +47,8 @@ public function setUp() {
));
$password = Security::hash('password', null, true);
- ClassRegistry::init('User')->updateAll(array('password' => '"' . $password . '"'));
+ $User = ClassRegistry::init('User');
+ $User->updateAll(array('password' => $User->getDataSource()->value($password)));
$this->server = $_SERVER;
$this->response = $this->getMock('CakeResponse');
}
@@ -48,7 +48,8 @@ public function setUp() {
));
$password = DigestAuthenticate::password('mariano', 'cake', 'localhost');
- ClassRegistry::init('User')->updateAll(array('password' => '"' . $password . '"'));
+ $User = ClassRegistry::init('User');
+ $User->updateAll(array('password' => $User->getDataSource()->value($password)));
$_SERVER['REQUEST_METHOD'] = 'GET';
$this->response = $this->getMock('CakeResponse');

0 comments on commit e14c441

Please sign in to comment.