public function testCreateWithLastEdited()
 {
     $extpectedDate = '2010-12-14 16:18:20';
     $blueprint = new FixtureBlueprint('FixtureFactoryTest_DataObject');
     $obj = $blueprint->createObject('lastedited', array('LastEdited' => $extpectedDate));
     $this->assertNotNull($obj);
     $this->assertEquals($extpectedDate, $obj->LastEdited);
     $obj = FixtureFactoryTest_DataObject::get()->byID($obj->ID);
     $this->assertEquals($extpectedDate, $obj->LastEdited);
 }
 public function testClearWithClass()
 {
     $factory = new FixtureFactory();
     $obj1 = $factory->createObject('FixtureFactoryTest_DataObject', 'object-one');
     $relation1 = $factory->createObject('FixtureFactoryTest_DataObjectRelation', 'relation-one');
     $factory->clear('FixtureFactoryTest_DataObject');
     $this->assertFalse($factory->getId('FixtureFactoryTest_DataObject', 'one'));
     $this->assertNull(FixtureFactoryTest_DataObject::get()->byId($obj1->ID));
     $this->assertEquals($relation1->ID, $factory->getId('FixtureFactoryTest_DataObjectRelation', 'relation-one'));
     $this->assertInstanceOf('FixtureFactoryTest_DataObjectRelation', FixtureFactoryTest_DataObjectRelation::get()->byId($relation1->ID));
 }