public function saveValue($artifact, $changeset_value_id, $value, Tracker_Artifact_ChangesetValue $previous_changesetvalue = null)
 {
     parent::saveValue($artifact, $changeset_value_id, $value, $previous_changesetvalue);
 }
 function testGetFieldData()
 {
     $bind = new MockTracker_FormElement_Field_List_Bind();
     $bind->setReturnValue('getFieldData', '115', array('existing value', '*'));
     $bind->setReturnValue('getFieldData', '118', array('yet another existing value', '*'));
     $bind->setReturnValue('getFieldData', null, array('new value', '*'));
     $bind->setReturnValue('getFieldData', null, array('yet another new value', '*'));
     $bind->setReturnValue('getFieldData', null, array('existing open value', '*'));
     $bind->setReturnValue('getFieldData', null, array('yet another existing open value', '*'));
     $bind->setReturnValue('getFieldData', null, array('', '*'));
     $odar = new MockDataAccessResult();
     $odar->setReturnValue('getRow', false);
     $open_value_dao = new MockTracker_FormElement_Field_List_OpenValueDao();
     $odar_30 = new MockDataAccessResult();
     $odar_30->setReturnValue('getRow', array('id' => '30', 'field_id' => '1', 'label' => 'existing open value'));
     $odar_40 = new MockDataAccessResult();
     $odar_40->setReturnValue('getRow', array('id' => '40', 'field_id' => '1', 'label' => 'yet another existing open value'));
     $open_value_dao->setReturnReference('searchByExactLabel', $odar_30, array(1, 'existing open value'));
     $open_value_dao->setReturnReference('searchByExactLabel', $odar_40, array(1, 'yet another existing open value'));
     $open_value_dao->setReturnReference('searchByExactLabel', $odar, array(1, 'new value'));
     $open_value_dao->setReturnReference('searchByExactLabel', $odar, array(1, 'yet another new value'));
     $open_value_dao->setReturnReference('searchByExactLabel', $odar, array(1, ''));
     $f = new Tracker_FormElement_Field_OpenListTestVersion();
     $f->setReturnReference('getOpenValueDao', $open_value_dao);
     $f->setReturnReference('getBind', $bind);
     $f->setReturnValue('getId', 1);
     $this->assertEqual("!new value,!yet another new value", $f->getFieldData('new value,yet another new value', true));
     $this->assertEqual("!new value,b115", $f->getFieldData('new value,existing value', true));
     $this->assertEqual("!new value,o30,b115", $f->getFieldData('new value,existing open value,existing value', true));
     $this->assertNull($f->getFieldData('', true));
 }