/**
* @group fieldType
* @group keyword
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\KeywordConverter::toStorageValue
*/
public function testToStorageValue()
{
$value = new FieldValue();
$value->data = array('key1', 'key2');
$value->sortKey = false;
$storageFieldValue = new StorageFieldValue();
$this->converter->toStorageValue($value, $storageFieldValue);
$this->assertNull($storageFieldValue->dataText);
$this->assertNull($storageFieldValue->dataInt);
$this->assertNull($storageFieldValue->dataFloat);
$this->assertEquals(0, $storageFieldValue->sortKeyInt);
$this->assertEquals('', $storageFieldValue->sortKeyString);
}