Fixing manual primary key insert in model test

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6749 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-05-03 16:35:03 +00:00
parent 32ea41a90e
commit f75da65bda

View file

@ -868,7 +868,7 @@ class ModelTest extends CakeTestCase {
function testUpdateExisting() {
$this->loadFixtures('User', 'Article', 'Comment');
$this->model =& new User();
$this->model->id = $id = 1000;
$this->model->id = $id = 1;
$this->model->delete();
$this->model->save(array('User' => array('id' => $id, 'user' => 'some user', 'password' => 'some password')));