/**
* @group fieldType
* @group textLine
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextLineConverter::toFieldValue
*/
public function testToFieldValue()
{
$storageFieldValue = new StorageFieldValue();
$storageFieldValue->dataText = 'When 900 years old, you reach... Look as good, you will not.';
$storageFieldValue->sortKeyString = 'When 900 years old, you reach...';
$storageFieldValue->sortKeyInt = 0;
$fieldValue = new FieldValue();
$this->converter->toFieldValue($storageFieldValue, $fieldValue);
self::assertSame($storageFieldValue->dataText, $fieldValue->data);
self::assertSame($storageFieldValue->sortKeyString, $fieldValue->sortKey);
}