Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…lsrv
  • Loading branch information...
commit 2e5bdd862bb698b7ac3b7868a7a46bd4c9f9dd1e 1 parent 4deedf6
@lorenzo lorenzo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
View
3  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))));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.