Browse files

Adding more tests for saving records with nulls. Closes #675

  • Loading branch information...
1 parent 0930b5c commit 745afe888b49ae6ecd11b8ccc9b48958eba6dbbb @markstory markstory committed May 7, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 cake/tests/cases/libs/model/model_write.test.php
View
5 cake/tests/cases/libs/model/model_write.test.php
@@ -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);
}
/**

0 comments on commit 745afe8

Please sign in to comment.