diff --git a/tests/Record/SaveBlankRecordTestCase.php b/tests/Record/SaveBlankRecordTestCase.php new file mode 100644 index 000000000..a3f4e28d4 --- /dev/null +++ b/tests/Record/SaveBlankRecordTestCase.php @@ -0,0 +1,44 @@ +. + */ + +/** + * Doctrine_Record_State_TestCase + * + * @package Doctrine + * @author Konsta Vesterinen + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Record_SaveBlankRecord_TestCase extends Doctrine_UnitTestCase +{ + public function testSaveBlankRecord() + { + // This will not save because no fields have been modified? + $user = new User(); + //$user->state('TDIRTY'); i thought this would force it but i thought wrong :) + $user->save(); + + $this->assertEqual($user['id'], 2); + } +} \ No newline at end of file