Skip to content

Commit

Permalink
Adding more tests for saving records with nulls. Closes #675
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 8, 2010
1 parent 0930b5c commit 745afe8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cake/tests/cases/libs/model/model_write.test.php
Expand Up @@ -910,6 +910,11 @@ function testSaveWithNullId() {
$User->data['User']['id'] = null;
$this->assertTrue($User->save(array('password' => 'test')));
$this->assertTrue($User->id > 0);

$User->read(null, 2);
$User->data['User']['id'] = null;
$this->assertTrue($User->save(array('password' => 'test')));
$this->assertTrue($User->id > 0);
}

/**
Expand Down

0 comments on commit 745afe8

Please sign in to comment.