function test_augmentDataFromRequest_dont_override_description() { $f = new Tracker_FormElement_Field_FileTestVersion(); $f->setReturnValue('getSubmittedInfoFromFILES', array('name' => array(66 => array(0 => array('file' => 'toto.gif'))), 'type' => array(66 => array(0 => array('file' => 'image/gif'))), 'error' => array(66 => array(0 => array('file' => 0))), 'tmp_name' => array(66 => array(0 => array('file' => 'dtgjio'))))); $f->setReturnValue('getId', 66); $fields_data = array('102' => '123', '66' => array('0' => array('description' => 'The description of the file'))); $this->assertNull($f->augmentDataFromRequest($fields_data)); $this->assertEqual($fields_data[66][0]['description'], 'The description of the file'); }