Permalink
Browse files

Adding some additional tests for possible php4 compatibility issues.

  • Loading branch information...
markstory committed May 12, 2010
1 parent 6add43a commit 0648c6604bc5fde19e0120c66b78de7f22affdfd
Showing with 5 additions and 0 deletions.
  1. +5 −0 cake/tests/cases/libs/model/model_write.test.php
@@ -916,6 +916,11 @@ function testSaveWithNullId() {
$User->data['User']['id'] = null;
$this->assertTrue($User->save(array('password' => 'test')));
$this->assertTrue($User->id > 0);
+
+ $User->data['User'] = array('password' => 'something');
+ $this->assertTrue($User->save());
+ $result = $User->read();
+ $this->assertEqual($User->data['User']['password'], 'something');
}
/**

0 comments on commit 0648c66

Please sign in to comment.