From 4b6a537c29a2ed799b47f0d135a3c5a805d21ff2 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Fri, 29 Jun 2007 19:22:55 +0000 Subject: [PATCH] Initial entry --- tests/Record/SaveBlankRecordTestCase.php | 44 ++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tests/Record/SaveBlankRecordTestCase.php 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