1
0
mirror of synced 2025-01-17 22:11:41 +03:00
This commit is contained in:
zYne 2007-07-05 16:40:05 +00:00
parent 62fbe90fc7
commit fcee65cb86

View File

@ -32,13 +32,15 @@
*/
class Doctrine_Record_SaveBlankRecord_TestCase extends Doctrine_UnitTestCase
{
public function prepareData()
{ }
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->state('TDIRTY');
$this->assertEqual($user['id'], null);
$user->save();
$this->assertEqual($user['id'], 2);
$this->assertEqual($user['id'], 1);
}
}
}