mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
32ea41a90e
commit
f75da65bda
1 changed files with 1 additions and 1 deletions
|
@ -868,7 +868,7 @@ class ModelTest extends CakeTestCase {
|
||||||
function testUpdateExisting() {
|
function testUpdateExisting() {
|
||||||
$this->loadFixtures('User', 'Article', 'Comment');
|
$this->loadFixtures('User', 'Article', 'Comment');
|
||||||
$this->model =& new User();
|
$this->model =& new User();
|
||||||
$this->model->id = $id = 1000;
|
$this->model->id = $id = 1;
|
||||||
$this->model->delete();
|
$this->model->delete();
|
||||||
|
|
||||||
$this->model->save(array('User' => array('id' => $id, 'user' => 'some user', 'password' => 'some password')));
|
$this->model->save(array('User' => array('id' => $id, 'user' => 'some user', 'password' => 'some password')));
|
||||||
|
|
Loading…
Add table
Reference in a new issue