Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding some additional tests for possible php4 compatibility issues.

  • Loading branch information...
commit 0648c6604bc5fde19e0120c66b78de7f22affdfd 1 parent 6add43a
@markstory markstory authored
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
@@ -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');
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.