. */ /** * 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.org * @since 1.0 * @version $Revision$ */ class Doctrine_Record_SaveBlankRecord_TestCase extends Doctrine_UnitTestCase { public function prepareTables() { $this->tables[] = 'MyUserGroup'; parent::prepareTables(); } public function prepareData() { } public function testSaveBlankRecord() { $user = new User(); $user->state('TDIRTY'); $user->save(); $this->assertTrue(isset($user['id'])); } public function testSaveBlankRecord2() { $myUserGroup = new MyUserGroup(); $myUserGroup->state('TDIRTY'); $myUserGroup->save(); $this->assertTrue(isset($user['id'])); } }