mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing more AuthComponent tests for Sqlsrv
This commit is contained in:
parent
9f1242492d
commit
e14c4412fd
2 changed files with 4 additions and 2 deletions
|
@ -47,7 +47,8 @@ class BasicAuthenticateTest extends CakeTestCase {
|
|||
));
|
||||
|
||||
$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 @@ class DigestAuthenticateTest extends CakeTestCase {
|
|||
));
|
||||
|
||||
$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');
|
||||
|
|
Loading…
Add table
Reference in a new issue